Fixed bug Sankore 55

preferencesAboutTextFull
Claudio Valerio 14 years ago
parent b4aecd8c57
commit 256e0a5104
  1. 26
      src/core/UBApplicationController.cpp

@ -333,34 +333,30 @@ void UBApplicationController::showBoard()
void UBApplicationController::showInternet() void UBApplicationController::showInternet()
{ {
if (UBSettings::settings()->webUseExternalBrowser->get().toBool())
{ if (UBApplication::boardController){
showDesktop(true); 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->boardToolBar->hide();
mMainWindow->documentToolBar->hide(); mMainWindow->documentToolBar->hide();
mMainWindow->tutorialToolBar->hide(); mMainWindow->tutorialToolBar->hide();
mMainWindow->webToolBar->show(); mMainWindow->webToolBar->show();
mMainMode = Internet;
adaptToolBar(); adaptToolBar();
mMainWindow->show(); mMainWindow->show();
mUninoteController->hideWindow(); mUninoteController->hideWindow();
mMainMode = Internet;
UBApplication::webController->show(UBWebController::WebBrowser);
emit mainModeChanged(Internet); emit mainModeChanged(Internet);
} }
UBApplication::webController->show(UBWebController::WebBrowser);
} }

Loading…
Cancel
Save