From 3a4b4e79b633f4fb452a241d804e7eac132ab0b0 Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Mon, 13 Aug 2012 14:03:49 +0200 Subject: [PATCH] fixed issue 900 --- src/web/UBWebController.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/web/UBWebController.cpp b/src/web/UBWebController.cpp index dd2bf32b..84ffea5b 100644 --- a/src/web/UBWebController.cpp +++ b/src/web/UBWebController.cpp @@ -725,9 +725,10 @@ void UBWebController::loadUrl(const QUrl& url) } else { + bool webBrowserAlreadyInstanciated = mStackedWidget->widget(WebBrowser) != NULL; UBApplication::applicationController->showInternet(); - if (mCurrentWebBrowser && !(*mCurrentWebBrowser)) { + if (!webBrowserAlreadyInstanciated) { (*mCurrentWebBrowser)->loadUrl(url); } else {