┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.cpp
diff options
context:
space:
mode:
authorHolger Freyther <[email protected]>2006-11-29 09:30:41 +0000
committerHolger Freyther <[email protected]>2006-11-29 09:30:41 +0000
commit9a4a17dd4d7f3d195ab4393e057e8eb90b0a3422 (patch)
tree1f6b6146a37e8289e8585f9e738cc3cd571812d6 /src/dolphinview.cpp
parent9b9bad8abe16609d400eb25118e86adc5b19e9e4 (diff)
Changes to Undo/Redo in regard to ProgressIndicator
It was not important to know where the operation was executed, it is important where undo/redo was clicked and this solely indicates where the progress should be shown. Now undo/redo get the MainWindow and can pass that to ProgressIndicator. I'm about to revive m_progressIndicator again svn path=/trunk/playground/utils/dolphin/; revision=609020
Diffstat (limited to 'src/dolphinview.cpp')
-rw-r--r--src/dolphinview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp
index 7dbebeab5..e60f6f655 100644
--- a/src/dolphinview.cpp
+++ b/src/dolphinview.cpp
@@ -263,7 +263,7 @@ void DolphinView::renameSelectedItems()
else if (KIO::NetAccess::file_move(source, dest)) {
// TODO: From the users point of view he executed one 'rename n files' operation,
// but internally we store it as n 'rename 1 file' operations for the undo mechanism.
- DolphinCommand command(DolphinCommand::Rename, source, dest, mainWindow());
+ DolphinCommand command(DolphinCommand::Rename, source, dest);
undoMan.addCommand(command);
}
}
@@ -569,7 +569,7 @@ void DolphinView::rename(const KUrl& source, const QString& newName)
m_statusBar->setMessage(i18n("Renamed file '%1' to '%2'.",source.fileName(), dest.fileName()),
DolphinStatusBar::OperationCompleted);
- DolphinCommand command(DolphinCommand::Rename, source, dest, mainWindow());
+ DolphinCommand command(DolphinCommand::Rename, source, dest);
UndoManager::instance().addCommand(command);
}
else {