diff options
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 7b320448..9b12ef3a 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -65,6 +65,7 @@ private: Ui::webkit webkitUi; KCModuleProxy *ebrowsingModule; KCModuleProxy *cookiesModule; + KShortcutsEditor *shortcutsEditor; Private(SettingsDialog *parent); @@ -102,8 +103,8 @@ Private::Private(SettingsDialog *parent) KIcon webkitIcon = KIcon(QIcon(webkitIconPath)); pageItem->setIcon(webkitIcon); - widget = new KShortcutsEditor(Application::instance()->mainWindow()->actionCollection(),parent); - pageItem = parent->addPage(widget , i18n("Shortcuts")); + shortcutsEditor = new KShortcutsEditor(Application::instance()->mainWindow()->actionCollection(),parent); + pageItem = parent->addPage(shortcutsEditor , i18n("Shortcuts")); pageItem->setIcon(KIcon("configure-shortcuts")); KCModuleInfo ebrowsingInfo("ebrowsing.desktop"); @@ -135,7 +136,8 @@ SettingsDialog::SettingsDialog(QWidget *parent) connect(d->ebrowsingModule, SIGNAL(changed(bool)), this, SLOT(updateButtons())); connect(d->cookiesModule, SIGNAL(changed(bool)), this, SLOT(updateButtons())); - + connect(d->shortcutsEditor, SIGNAL(keyChange()), this, SLOT(updateButtons())); + connect(this, SIGNAL(applyClicked()), this, SLOT(saveSettings())); connect(this, SIGNAL(okClicked()), this, SLOT(saveSettings())); @@ -188,6 +190,7 @@ void SettingsDialog::saveSettings() ReKonfig::self()->writeConfig(); d->ebrowsingModule->save(); d->cookiesModule->save(); + d->shortcutsEditor->save(); } |