From 0978af0fb86ad8486798e3240f6e3a7ae99c14cb Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Wed, 19 Sep 2012 15:07:55 +0200 Subject: [PATCH] fixed issue with translation and starting mode --- src/core/UBApplication.cpp | 2 +- src/core/UBPreferencesController.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/UBApplication.cpp b/src/core/UBApplication.cpp index 8f0b6fdc..deb11c6e 100644 --- a/src/core/UBApplication.cpp +++ b/src/core/UBApplication.cpp @@ -372,7 +372,7 @@ int UBApplication::exec(const QString& pFileToImport) AEInstallEventHandler(kCoreEventClass, kAEReopenApplication, ub_proc_ae_handlerUPP, SRefCon(UBApplication::applicationController), true); #endif - if (UBSettings::settings()->appStartMode->get() == "Desktop") + if (UBSettings::settings()->appStartMode->get().toInt()) applicationController->showDesktop(); else applicationController->showBoard(); diff --git a/src/core/UBPreferencesController.cpp b/src/core/UBPreferencesController.cpp index 042eeef4..df3bd880 100644 --- a/src/core/UBPreferencesController.cpp +++ b/src/core/UBPreferencesController.cpp @@ -112,7 +112,7 @@ void UBPreferencesController::wire() connect(mPreferencesUI->keyboardPaletteKeyButtonSize, SIGNAL(currentIndexChanged(const QString &)), settings->boardKeyboardPaletteKeyBtnSize, SLOT(setString(const QString &))); - connect(mPreferencesUI->startModeComboBox, SIGNAL(currentIndexChanged(const QString &)), settings->appStartMode, SLOT(setString(const QString &))); + connect(mPreferencesUI->startModeComboBox, SIGNAL(currentIndexChanged(int)), settings->appStartMode, SLOT(setInt(int))); connect(mPreferencesUI->useExternalBrowserCheckBox, SIGNAL(clicked(bool)), settings->webUseExternalBrowser, SLOT(setBool(bool)));