┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-01-31 22:14:46 +0000
committerPeter Penz <[email protected]>2007-01-31 22:14:46 +0000
commitc8b837a47b6ea4d6d84f0c72eb67502fe6cc6d78 (patch)
tree92fbde95dd7bf24939a8792fe037ecfffed291e9 /src
parentcd3df82730865636c92c5bb9f38a0490c0deffaa (diff)
clear the status bar when doing an undo operation
svn path=/trunk/playground/utils/dolphin/; revision=628910
Diffstat (limited to 'src')
-rw-r--r--src/dolphinmainwindow.cpp8
-rw-r--r--src/dolphinmainwindow.h3
2 files changed, 10 insertions, 1 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index fa9835480..a2f99a243 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -488,6 +488,12 @@ void DolphinMainWindow::slotUndoTextChanged(const QString& text)
}
}
+void DolphinMainWindow::undo()
+{
+ clearStatusBar();
+ KonqUndoManager::self()->undo();
+}
+
void DolphinMainWindow::cut()
{
QMimeData* mimeData = new QMimeData();
@@ -973,7 +979,7 @@ void DolphinMainWindow::setupActions()
KStandardAction::quit(this, SLOT(quit()), actionCollection());
// setup 'Edit' menu
- KStandardAction::undo(KonqUndoManager::self(),
+ KStandardAction::undo(this,
SLOT(undo()),
actionCollection());
diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h
index 2d11480a9..bc285a4db 100644
--- a/src/dolphinmainwindow.h
+++ b/src/dolphinmainwindow.h
@@ -171,6 +171,9 @@ private slots:
/** 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.