summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Tanner <thosrtanner2@users.sourceforge.net>2015-04-29 21:14:46 +0100
committerTom Tanner <thosrtanner2@users.sourceforge.net>2015-04-29 21:14:46 +0100
commitc909f8ce4fa8d800a9cf5c0aafb5d8a3f577fcf9 (patch)
tree53b4cc67af2eade9e29e0f33b8f9c84dd60f04ff /src
parentce925bc73e077fea813e509af4e9ad19f4306960 (diff)
remove redundant comments/code from drag'n'drop stuff
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 945b258c..cadd935c 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -4610,9 +4610,6 @@ void MainWindow::dropEvent(QDropEvent *event)
QString target = output_dir + "/" + file.fileName();
//FIXME: Check here if the file exists and offer a rename
if (QFile::exists(target)) {
- //Make this box have 2 buttons:
- //'overwrite' and 'rename'
- //for copy it's ok to add a 'do nothing' button
QMessageBox box(QMessageBox::Question,
file.fileName(),
tr("A file with the same name has already been downloaded. "
@@ -4657,10 +4654,6 @@ void MainWindow::dropEvent(QDropEvent *event)
}
//Something has gone horribly wrong here
qDebug("error %d", GetLastError());
- if (action == Qt::MoveAction) {
- //Don't let the original source get deleted on a move
- event->setDropAction(Qt::TargetMoveAction);
- }
}
event->accept();
}