aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-fm/FODialog.cpp
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2017-08-17 16:02:53 +0000
committerWeblate <noreply@weblate.org>2017-08-17 16:02:53 +0000
commite22937e90e6be7820e11cc9eba47bd0fb1b394e9 (patch)
treebb65904fd9aeee5e6325d12675e10f58cee25b80 /src-qt5/desktop-utils/lumina-fm/FODialog.cpp
parentTranslated using Weblate (Spanish) (diff)
parentMerge remote-tracking branch 'origin/master' (diff)
downloadlumina-e22937e90e6be7820e11cc9eba47bd0fb1b394e9.tar.gz
lumina-e22937e90e6be7820e11cc9eba47bd0fb1b394e9.tar.bz2
lumina-e22937e90e6be7820e11cc9eba47bd0fb1b394e9.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm/FODialog.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-fm/FODialog.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/FODialog.cpp b/src-qt5/desktop-utils/lumina-fm/FODialog.cpp
index ee22f832..0d04b912 100644
--- a/src-qt5/desktop-utils/lumina-fm/FODialog.cpp
+++ b/src-qt5/desktop-utils/lumina-fm/FODialog.cpp
@@ -128,7 +128,13 @@ bool FODialog::CheckOverwrite(){
}
if(!existing.isEmpty()){
//Prompt for whether to overwrite, not overwrite, or cancel
- QMessageBox::StandardButton ans = QMessageBox::question(this, tr("Overwrite Files?"), tr("Do you want to overwrite the existing files?")+"\n"+tr("Note: It will just add a number to the filename otherwise.")+"\n\n"+existing.join(", "), QMessageBox::YesToAll | QMessageBox::NoToAll | QMessageBox::Cancel, QMessageBox::NoToAll);
+ QMessageBox dialog(QMessageBox::Question, tr("Overwrite Files?"), tr("Do you want to overwrite the existing files?")+"\n"+tr("Note: It will just add a number to the filename otherwise.")+"\n\n"+existing.join(", "), QMessageBox::YesToAll | QMessageBox::NoToAll | QMessageBox::Cancel, this);
+
+ dialog.setButtonText(QMessageBox::YesToAll, tr("YesToAll"));
+ dialog.setButtonText(QMessageBox::NoToAll, tr("NoToAll"));
+ dialog.setButtonText(QMessageBox::Cancel, tr("Cancel"));
+ dialog.setDefaultButton(QMessageBox::NoToAll);
+ const int ans = dialog.exec();
if(ans==QMessageBox::NoToAll){ Worker->overwrite = 0; } //don't overwrite
else if(ans==QMessageBox::YesToAll){ Worker->overwrite = 1; } //overwrite
else{ qDebug() << " - Cancelled"; Worker->overwrite = -1; ok = false; } //cancel operations
bgstack15