From 42b08ef39a3669f53fb5a175c726bf2a3f66ecf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fauconnier?= Date: Tue, 2 Apr 2019 09:21:21 +0200 Subject: [PATCH] Revert "added possibility to start in Document Mode" This reverts commit 62a5ad33bd5526a093175a3cdf51730c587464d4. --- resources/forms/preferences.ui | 5 ----- src/core/UBApplication.cpp | 8 +++----- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/resources/forms/preferences.ui b/resources/forms/preferences.ui index a8e423cd..d9261d6d 100644 --- a/resources/forms/preferences.ui +++ b/resources/forms/preferences.ui @@ -387,11 +387,6 @@ Desktop - - - Document - - diff --git a/src/core/UBApplication.cpp b/src/core/UBApplication.cpp index c8692290..194ea6e4 100644 --- a/src/core/UBApplication.cpp +++ b/src/core/UBApplication.cpp @@ -351,12 +351,10 @@ int UBApplication::exec(const QString& pFileToImport) if (pFileToImport.length() > 0) UBApplication::applicationController->importFile(pFileToImport); - if (UBSettings::settings()->appStartMode->get().toInt() == 0) - applicationController->showBoard(); - else if (UBSettings::settings()->appStartMode->get().toInt() == 1) + if (UBSettings::settings()->appStartMode->get().toInt()) applicationController->showDesktop(); - else if (UBSettings::settings()->appStartMode->get().toInt() == 2) - applicationController->showDocument(); + else + applicationController->showBoard(); emit UBDrawingController::drawingController()->colorPaletteChanged();