From 2304c546ec73f2643621f04d61128c2686812cd1 Mon Sep 17 00:00:00 2001 From: ar Date: Sat, 21 Aug 2004 10:08:44 +0000 Subject: - BugFix: #1383 - Language settings doesn't warn about losing open apps (Thanks to Markus Litz for the patch) --- (limited to 'noncore/settings') diff --git a/noncore/settings/language/language.cpp b/noncore/settings/language/language.cpp index d30a041..8dff063 100644 --- a/noncore/settings/language/language.cpp +++ b/noncore/settings/language/language.cpp @@ -93,8 +93,21 @@ LanguageSettings::~LanguageSettings() void LanguageSettings::accept() { - applyLanguage(); - QDialog::accept(); + switch( QMessageBox::warning( this, "Language", + "Attention, all windows will be closed\n" + "by changing the language\n" + "without saving the Data.\n\n" + "Go on?", + "Ok", "Cancel", 0, + 0, 1 )) + { + case 0: // OK + applyLanguage(); + QDialog::accept(); + break; + case 1: // Abbruch + break; + } } void LanguageSettings::applyLanguage() -- cgit v0.9.0.2