Commit 808ab0ed authored by Mike Kremer's avatar Mike Kremer

Language settings are now stored...

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9345 383ad7c9-94d9-4d36-a494-682f7c89f535
parent a7a2fdc9
......@@ -59,7 +59,8 @@ OptionsWidget::OptionsWidget(std::vector<PluginInfo>& _plugins, std::vector<KeyB
plugins_(_plugins),
coreKeys_(_core),
keys_(_invKeys),
translationIndexChanged_(false)
translationIndexChanged_(false),
exitOnClose_(false)
{
setupUi(this);
......@@ -669,7 +670,7 @@ void OptionsWidget::slotApply() {
tr("The changes will take effect after next restart. Do you want to close OpenFlipper now?"),
QMessageBox::Yes | QMessageBox::No);
if(restart == QMessageBox::Yes) emit exit(0);
if(restart == QMessageBox::Yes) exitOnClose_ = true;
}
switch ( translation->currentIndex() ){
......@@ -682,6 +683,9 @@ void OptionsWidget::slotApply() {
emit applyOptions();
emit saveOptions();
// Close OpenFlipper if demanded
if(exitOnClose_) emit exit(0);
}
void OptionsWidget::slotOk(){
......
......@@ -228,6 +228,7 @@ private:
/** Used to track whether another language has been selected
*/
bool translationIndexChanged_;
bool exitOnClose_;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment