diff options
author | Weblate <noreply@weblate.org> | 2017-08-17 16:02:28 +0000 |
---|---|---|
committer | Weblate <noreply@weblate.org> | 2017-08-17 16:02:28 +0000 |
commit | 073b18e631b0837ce4126d1f23a384d5e64266b6 (patch) | |
tree | 9ca53c29b4f6a2f4ebb931753fe90bd4a478a802 /src-qt5/core-utils/lumina-config/mainWindow.cpp | |
parent | Translated using Weblate (Swedish) (diff) | |
parent | Clean up more of the lumina-xconfig tiling options. much nicer now. (diff) | |
download | lumina-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.cpp | 7 |
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 } |