aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/filetransferwindow/FileTransferWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/filetransferwindow/FileTransferWindow.cpp')
-rw-r--r--src/modules/filetransferwindow/FileTransferWindow.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/filetransferwindow/FileTransferWindow.cpp b/src/modules/filetransferwindow/FileTransferWindow.cpp
index a59b82126..bc8e75c44 100644
--- a/src/modules/filetransferwindow/FileTransferWindow.cpp
+++ b/src/modules/filetransferwindow/FileTransferWindow.cpp
@@ -640,15 +640,14 @@ void FileTransferWindow::deleteLocalFile()
QString szName = pTransfer->localFileName();
QString szTmp = QString(__tr2qs_ctx("Do you really want to delete the file %1?", "filetransferwindow")).arg(szName);
- if(QMessageBox::warning(this, __tr2qs_ctx("Confirm File Delete - KVIrc", "filetransferwindow"),
- szTmp, __tr2qs_ctx("Yes", "filetransferwindow"), __tr2qs_ctx("No", "filetransferwindow"))
- != 0)
+ if(QMessageBox::question(this, __tr2qs_ctx("Confirm File Delete - KVIrc", "filetransferwindow"),
+ szTmp)
+ != QMessageBox::Yes)
return;
if(!QFile::remove(szName))
QMessageBox::warning(this, __tr2qs_ctx("Deleting File Failed - KVIrc", "filetransferwindow"),
- __tr2qs_ctx("Failed to remove the file", "filetransferwindow"),
- __tr2qs_ctx("OK", "filetransferwindow"));
+ __tr2qs_ctx("Failed to remove the file", "filetransferwindow"));
}
void FileTransferWindow::openLocalFile()
@@ -833,7 +832,8 @@ void FileTransferWindow::clearAll()
// If any transfer is active asks for confirm
if(!bHaveAllTerminated)
- if(QMessageBox::warning(this, __tr2qs_ctx("Confirm Clearing All Transfers - KVIrc", "filetransferwindow"), szTmp, __tr2qs_ctx("Yes", "filetransferwindow"), __tr2qs_ctx("No", "filetransferwindow")) != 0)
+ if(QMessageBox::question(this, __tr2qs_ctx("Confirm Clearing All Transfers - KVIrc", "filetransferwindow")
+ , szTmp) != QMessageBox::Yes)
return;
KviFileTransferManager::instance()->killAllTransfers();