mirror of
https://github.com/KDE/konsole.git
synced 2026-05-03 20:26:45 -04:00
Fix setting of key binding description /doh. Fix crash in key binding editor if used without setting it up with an existing translator. Fixes crash in translator list if it is empty.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=677187
This commit is contained in:
@@ -640,7 +640,9 @@ void EditProfileDialog::showKeyBindingEditor(bool isNewTranslator)
|
||||
|
||||
KeyBindingEditor* editor = new KeyBindingEditor;
|
||||
dialog->setMainWidget(editor);
|
||||
editor->setup(translator);
|
||||
|
||||
if ( translator )
|
||||
editor->setup(translator);
|
||||
|
||||
if ( isNewTranslator )
|
||||
editor->setDescription(i18n("New Key Binding List"));
|
||||
@@ -652,7 +654,9 @@ void EditProfileDialog::showKeyBindingEditor(bool isNewTranslator)
|
||||
if ( isNewTranslator )
|
||||
newTranslator->setName(newTranslator->description());
|
||||
|
||||
qDebug() << "Adding new or modified translator to manager";
|
||||
qDebug() << "Adding new or modified translator to manager" <<
|
||||
newTranslator->name() << ", " << newTranslator->description();
|
||||
|
||||
KeyboardTranslatorManager::instance()->addTranslator( newTranslator );
|
||||
|
||||
updateKeyBindingsList();
|
||||
|
||||
Reference in New Issue
Block a user