From 256e0a51042e867ce79a067e95ba3fe466e89fd5 Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Fri, 10 Jun 2011 13:31:34 +0200 Subject: [PATCH] Fixed bug Sankore 55 --- src/core/UBApplicationController.cpp | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/core/UBApplicationController.cpp b/src/core/UBApplicationController.cpp index f8631586..21006bbb 100644 --- a/src/core/UBApplicationController.cpp +++ b/src/core/UBApplicationController.cpp @@ -333,34 +333,30 @@ void UBApplicationController::showBoard() void UBApplicationController::showInternet() { - if (UBSettings::settings()->webUseExternalBrowser->get().toBool()) - { - showDesktop(true); + + if (UBApplication::boardController){ + UBApplication::boardController->persistCurrentScene(); + UBApplication::boardController->hide(); } - else - { - if (UBApplication::boardController) - { - UBApplication::boardController->persistCurrentScene(); - UBApplication::boardController->hide(); - } + if (UBSettings::settings()->webUseExternalBrowser->get().toBool()){ + showDesktop(true); + } + else { mMainWindow->boardToolBar->hide(); mMainWindow->documentToolBar->hide(); mMainWindow->tutorialToolBar->hide(); mMainWindow->webToolBar->show(); - mMainMode = Internet; - adaptToolBar(); mMainWindow->show(); mUninoteController->hideWindow(); - - UBApplication::webController->show(UBWebController::WebBrowser); - + mMainMode = Internet; emit mainModeChanged(Internet); } + UBApplication::webController->show(UBWebController::WebBrowser); + }