aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core-utils/lumina-config/mainWindow.cpp
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2017-08-17 16:02:28 +0000
committerWeblate <noreply@weblate.org>2017-08-17 16:02:28 +0000
commit073b18e631b0837ce4126d1f23a384d5e64266b6 (patch)
tree9ca53c29b4f6a2f4ebb931753fe90bd4a478a802 /src-qt5/core-utils/lumina-config/mainWindow.cpp
parentTranslated using Weblate (Swedish) (diff)
parentClean up more of the lumina-xconfig tiling options. much nicer now. (diff)
downloadlumina-073b18e631b0837ce4126d1f23a384d5e64266b6.tar.gz
lumina-073b18e631b0837ce4126d1f23a384d5e64266b6.tar.bz2
lumina-073b18e631b0837ce4126d1f23a384d5e64266b6.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/core-utils/lumina-config/mainWindow.cpp')
-rw-r--r--src-qt5/core-utils/lumina-config/mainWindow.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src-qt5/core-utils/lumina-config/mainWindow.cpp b/src-qt5/core-utils/lumina-config/mainWindow.cpp
index 3e843354..566cd412 100644
--- a/src-qt5/core-utils/lumina-config/mainWindow.cpp
+++ b/src-qt5/core-utils/lumina-config/mainWindow.cpp
@@ -127,7 +127,12 @@ void mainWindow::pageSetTitle(QString title){
bool mainWindow::page_change(QString id){
if(ui->actionSave->isEnabled()){
//unsaved changed available - prompt to save first
- QMessageBox::StandardButton result = QMessageBox::question(this, tr("Unsaved Changes"), tr("This page currently has unsaved changes, do you wish to save them now?"), QMessageBox::Yes | QMessageBox::No | QMessageBox::Cancel, QMessageBox::No);
+ QMessageBox dialog(QMessageBox::Question, tr("Unsaved Changes"), tr("This page currently has unsaved changes, do you wish to save them now?"), QMessageBox::Yes | QMessageBox::No | QMessageBox::Cancel, this);
+ dialog.setDefaultButton(QMessageBox::No);
+ dialog.setButtonText(QMessageBox::Yes, tr("Yes"));
+ dialog.setButtonText(QMessageBox::No, tr("No"));
+ dialog.setButtonText(QMessageBox::Cancel, tr("Cancel"));
+ const int result = dialog.exec();
if(result == QMessageBox::Yes){ on_actionSave_triggered(); }
else if(result == QMessageBox::Cancel){ return false; } //stop now
}
bgstack15