From 5e645ab83c99c6ba669efbbe70418c64150a1a0c Mon Sep 17 00:00:00 2001 From: Andreas Gungl Date: Sun, 13 Feb 2005 20:08:59 +0000 Subject: [PATCH] As requested for better usability. Limit the hiding of the dynamic toolbar icons to a minimum. BUG: 98715 svn path=/trunk/kdepim/; revision=389129 --- kmmainwin.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/kmmainwin.cpp b/kmmainwin.cpp index eb9a08617..a460a9b6b 100644 --- a/kmmainwin.cpp +++ b/kmmainwin.cpp @@ -1,3 +1,4 @@ + #ifdef HAVE_CONFIG_H #include #endif @@ -119,9 +120,6 @@ void KMMainWin::displayStatusMsg(const QString& aText) void KMMainWin::slotEditToolbars() { - // remove dynamically created actions before editing - mKMMainWidget->clearFilterActions(); - saveMainWindowSettings(KMKernel::config(), "Main Window"); KEditToolbar dlg(actionCollection(), "kmmainwin.rc"); @@ -129,14 +127,18 @@ void KMMainWin::slotEditToolbars() SLOT(slotUpdateToolbars()) ); dlg.exec(); - // plug dynamically created actions again - mKMMainWidget->initializeFilterActions(); } void KMMainWin::slotUpdateToolbars() { + // remove dynamically created actions before editing + mKMMainWidget->clearFilterActions(); + createGUI("kmmainwin.rc", false); applyMainWindowSettings(KMKernel::config(), "Main Window"); + + // plug dynamically created actions again + mKMMainWidget->initializeFilterActions(); } void KMMainWin::setupStatusBar()