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)));