From kde-commits Wed Jan 31 22:14:52 2007 From: Peter Penz Date: Wed, 31 Jan 2007 22:14:52 +0000 To: kde-commits Subject: playground/utils/dolphin/src Message-Id: <1170281692.242195.8797.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=117028171300366 SVN commit 628910 by ppenz: clear the status bar when doing an undo operation M +7 -1 dolphinmainwindow.cpp M +3 -0 dolphinmainwindow.h --- trunk/playground/utils/dolphin/src/dolphinmainwindow.cpp #628909:628910 @@ -488,6 +488,12 @@ } } +void DolphinMainWindow::undo() +{ + clearStatusBar(); + KonqUndoManager::self()->undo(); +} + void DolphinMainWindow::cut() { QMimeData* mimeData = new QMimeData(); @@ -973,7 +979,7 @@ KStandardAction::quit(this, SLOT(quit()), actionCollection()); // setup 'Edit' menu - KStandardAction::undo(KonqUndoManager::self(), + KStandardAction::undo(this, SLOT(undo()), actionCollection()); --- trunk/playground/utils/dolphin/src/dolphinmainwindow.h #628909:628910 @@ -171,6 +171,9 @@ /** Sets the text of the 'Undo' menu action to \a text. */ void slotUndoTextChanged(const QString& text); + /** Performs the current undo operation. */ + void undo(); + /** * Copies all selected items to the clipboard and marks * the items as cutted.