diff options
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/preferences.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-ui/preferences.cpp b/qt-ui/preferences.cpp index 715745e84..6450c41cb 100644 --- a/qt-ui/preferences.cpp +++ b/qt-ui/preferences.cpp @@ -23,14 +23,13 @@ PreferencesDialog *PreferencesDialog::instance() { static PreferencesDialog *dialog = new PreferencesDialog(MainWindow::instance()); - dialog->setAttribute(Qt::WA_QuitOnClose, false); - LanguageModel::instance(); return dialog; } PreferencesDialog::PreferencesDialog(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f) { ui.setupUi(this); + setAttribute(Qt::WA_QuitOnClose, false); #if defined(Q_OS_ANDROID) || !defined(FBSUPPORT) for (int i = 0; i < ui.listWidget->count(); i++) { |