src/partdownloader.cpp

changeset 1156
c20ee66b6705
parent 1145
02264bf0108d
child 1192
317f4ce38f3f
child 1263
0256edecda54
--- a/src/partdownloader.cpp	Thu Feb 23 19:33:56 2017 +0200
+++ b/src/partdownloader.cpp	Thu Feb 23 19:56:21 2017 +0200
@@ -193,7 +193,9 @@
 		if (QFile::exists(downloadPath() + DIRSLASH + destination))
 		{
 			QString message = format(tr("%1 already exists in download directory. Overwrite?"), destination);
-			if (not Confirm(tr("Overwrite?"), message))
+			int answer = QMessageBox::question(this, tr("Overwrite"), message, (QMessageBox::Yes | QMessageBox::No), QMessageBox::No);
+
+			if (answer != QMessageBox::Yes)
 				return;
 		}
 

mercurial