From c909f8ce4fa8d800a9cf5c0aafb5d8a3f577fcf9 Mon Sep 17 00:00:00 2001 From: Tom Tanner Date: Wed, 29 Apr 2015 21:14:46 +0100 Subject: remove redundant comments/code from drag'n'drop stuff --- src/mainwindow.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src') 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(); } -- cgit v1.3.1