┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/undomanager.cpp
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2006-11-22 08:22:45 +0000
committerLaurent Montel <[email protected]>2006-11-22 08:22:45 +0000
commit20b58b6c03f6fa56d0cc1da90c13658664c153f1 (patch)
tree1ac95537c3d0c6f35e5ca9dbbf7fe9c90e14a3b7 /src/undomanager.cpp
parent6987f297e6e275a1f46aa0f33919e86684c9ed8b (diff)
Some port
Remove not necessary file svn path=/trunk/playground/utils/dolphin/; revision=606884
Diffstat (limited to 'src/undomanager.cpp')
-rw-r--r--src/undomanager.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/undomanager.cpp b/src/undomanager.cpp
index 4173b3c5e..958816b9d 100644
--- a/src/undomanager.cpp
+++ b/src/undomanager.cpp
@@ -147,7 +147,7 @@ void UndoManager::undo()
KUrl::List sourceURLs = command.source();
KUrl::List::Iterator it = sourceURLs.begin();
const KUrl::List::Iterator end = sourceURLs.end();
- const QString destURL(command.destination().prettyURL(+1));
+ const QString destURL(command.destination().prettyUrl(KUrl::AddTrailingSlash));
KIO::Job* job = 0;
switch (command.type()) {
@@ -155,7 +155,7 @@ void UndoManager::undo()
case DolphinCommand::Copy: {
KUrl::List list;
while (it != end) {
- const KUrl deleteURL(destURL + (*it).filename());
+ const KUrl deleteURL(destURL + (*it).fileName());
list.append(deleteURL);
++it;
}
@@ -167,7 +167,7 @@ void UndoManager::undo()
KUrl::List list;
const KUrl newDestURL((*it).directory());
while (it != end) {
- const KUrl newSourceURL(destURL + (*it).filename());
+ const KUrl newSourceURL(destURL + (*it).fileName());
list.append(newSourceURL);
++it;
}
@@ -185,7 +185,7 @@ void UndoManager::undo()
while (it != end) {
// TODO: use KIO::special for accessing the trash protocol. See
// also Dolphin::slotJobResult() for further details.
- const QString originalFileName((*it).filename().section('-', 1));
+ const QString originalFileName((*it).fileName().section('-', 1));
KUrl newDestURL(destURL + originalFileName);
KIO::NetAccess::move(*it, newDestURL);
++it;
@@ -275,11 +275,11 @@ void UndoManager::redo()
}
case DolphinCommand::Trash: {
- const QString destURL(command.destination().prettyURL());
+ const QString destURL(command.destination().prettyUrl());
while (it != end) {
// TODO: use KIO::special for accessing the trash protocol. See
// also Dolphin::slotJobResult() for further details.
- const QString originalFileName((*it).filename().section('-', 1));
+ const QString originalFileName((*it).fileName().section('-', 1));
KUrl originalSourceURL(destURL + "/" + originalFileName);
KIO::Job* moveToTrashJob = KIO::trash(originalSourceURL);
KIO::NetAccess::synchronousRun(moveToTrashJob, &dolphin);