summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorTom Tanner <thosrtanner2@users.sourceforge.net>2015-05-03 09:51:01 +0100
committerTom Tanner <thosrtanner2@users.sourceforge.net>2015-05-03 09:51:01 +0100
commit89eabf3c4df39f918fae9414d26a4cf5459f2047 (patch)
treeb42ae9d1b1c5b1ef6786ac35b2f224699ddb1472 /src/mainwindow.cpp
parent26368df7a6f718b86fa2d5b6a616980037968160 (diff)
added a 'yes to all' shellMove and made the drag-and-drop code use shellMove/shellCopy
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 755b5469..578d4419 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -4635,19 +4635,13 @@ void MainWindow::dropEvent(QDropEvent *event)
}
}
- //We should really show progress and add a cancel button for these in case
- //the operation takes a long time.
if (action == Qt::MoveAction) {
- if (MoveFileExW(file.absoluteFilePath().toStdWString().c_str(),
- target.toStdWString().c_str(),
- MOVEFILE_COPY_ALLOWED | MOVEFILE_REPLACE_EXISTING) != 0) {
+ if (shellMove(file.absoluteFilePath(), target, true, this)) {
continue;
}
}
else {
- if (CopyFileW(file.absoluteFilePath().toStdWString().c_str(),
- target.toStdWString().c_str(),
- FALSE) != 0) {
+ if (shellCopy(file.absoluteFilePath(), target, true, this)) {
continue;
}
}