On Wednesday 12 March 2003 8:57 am, Frerich Raabe wrote: > On Wednesday 12 March 2003 09:54, Simon Hausmann wrote: > > Please use a unified diff. (put 'cvs diff -u -p' into your ~/.cvsrc, > > so you get a unified one including the affected function names) > > It's just "diff -u -p" actually. > > - Frerich Done. Here it is. -Benjamin Meyer =================================================================== RCS file: /home/kde/kdelibs/kdeui/kmainwindow.cpp,v retrieving revision 1.98 diff -u -3 -p -r1.98 kmainwindow.cpp --- kmainwindow.cpp 13 Mar 2003 00:53:29 -0000 1.98 +++ kmainwindow.cpp 13 Mar 2003 00:59:09 -0000 @@ -65,6 +65,7 @@ public: KMainWindowInterface *m_interface; KDEPrivate::ToolBarHandler *toolBarHandler; QTimer* settingsTimer; + KToggleAction *showStatusbar; QRect defaultWindowSize; }; @@ -729,9 +730,11 @@ void KMainWindow::applyMainWindowSetting i = config->readListEntry (QString::fromLatin1("StatusBar"), entryList, ';'); entry = entryList.first(); if (entry == QString::fromLatin1("Disabled")){ + d->showStatusbar->setChecked(false); sb->hide(); } else{ + d->showStatusbar->setChecked(true); sb->show(); } } @@ -939,6 +942,8 @@ KStatusBar *KMainWindow::statusBar() // trigger a re-layout and trigger a call to the private // setStatusBar method. QMainWindow::statusBar(); + d->showStatusbar = KStdAction::showStatusbar(this, SLOT(setSettingsDirty()), actionCollection()); + connect(d->showStatusbar, SIGNAL(toggled(bool)), sb, SLOT(setShown(bool))); } return sb; }