| Summary: | Kontact "Settings" menu has duplicate "Configure shortcut..." items | ||
|---|---|---|---|
| Product: | [Applications] kontact | Reporter: | klee |
| Component: | general | Assignee: | kdepim bugs <pim-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
klee
2003-11-11 22:48:19 UTC
When running as KPart KMainWidget shouldn't create the KAction for "Configure Shortcuts" or it has to use a different XMLGUI file when running as a KPart. Subject: kdepim/kmail CVS commit by tokoe: Use only one 'Configure Shortcuts...' action when embedded in Kontact. That fixes #67935. CCMAIL:67935-done@bugs.kde.org M +0 -6 kmmainwidget.cpp 1.119 M +3 -0 kmmainwin.cpp 1.575 M +1 -1 kmmainwin.rc 1.64 --- kdepim/kmail/kmmainwidget.cpp #1.118:1.119 @@ -2597,10 +2597,4 @@ void KMMainWidget::setupActions() // ----- Standard Actions -// KStdAction::keyBindings(this, SLOT(slotEditKeys()), actionCollection()); - (void) new KAction( i18n("Configure S&hortcuts..."), - "configure_shortcuts", 0, this, - SLOT(slotEditKeys()), actionCollection(), - "kmail_configure_shortcuts" ); - // KStdAction::configureNotifications(this, SLOT(slotEditNotifications()), actionCollection()); (void) new KAction( i18n("Configure &Notifications..."), --- kdepim/kmail/kmmainwin.cpp #1.574:1.575 @@ -30,4 +30,7 @@ KMMainWin::KMMainWin(QWidget *) actionCollection(), "kmail_configure_toolbars" ); + KStdAction::keyBindings(mKMMainWidget, SLOT(slotEditKeys()), + actionCollection()); + #if !KDE_IS_VERSION( 3, 1, 90 ) mToolbarAction = KStdAction::showToolbar(this, --- kdepim/kmail/kmmainwin.rc #1.63:1.64 @@ -123,5 +123,5 @@ <Action name="popFilter" append="save_merge"/> <Separator/> - <Action name="kmail_configure_shortcuts" /> + <Action name="options_configure_keybinding"/> <Action name="kmail_configure_notifications" /> <Action name="kmail_configure_toolbars" /> |