Preferences: make apply work

We didn't respond at all to that button. Also, the language settings
didn't propagate without this explicit call.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-11-02 12:50:17 -08:00
parent 9f93b9a934
commit df7818a9b8
3 changed files with 11 additions and 7 deletions

View file

@ -1,5 +1,6 @@
#include "preferences_language.h"
#include "ui_prefs_language.h"
#include "subsurface-core/helpers.h"
#include <QApplication>
#include <QSettings>
@ -67,4 +68,5 @@ void PreferencesLanguage::syncSettings()
s.setValue("date_format_short", ui->shortDateFormatEntry->text());
}
s.endGroup();
uiLanguage(NULL);
}