From d47927feffc579b4dcf3ce9acb776e4d15b79c9e Mon Sep 17 00:00:00 2001 From: nowrep Date: Sat, 18 Feb 2012 23:21:36 +0100 Subject: [PATCH] [Fix] Fixed crash with "don't quit upon last tab" option - when closing last tab with image, QWebView::setUrl() was for some reason crashing --- plugins/TestPlugin/testplugin.cpp | 2 -- src/webview/tabwidget.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/TestPlugin/testplugin.cpp b/plugins/TestPlugin/testplugin.cpp index ebacfa5bb..c0745a5ed 100644 --- a/plugins/TestPlugin/testplugin.cpp +++ b/plugins/TestPlugin/testplugin.cpp @@ -5,8 +5,6 @@ void TestPlugin::init(QString sPath) settingsPath = sPath; //This function is called right after plugin is loaded qDebug() << __FUNCTION__ << "called"; - - qDebug() << HistoryModel::titleCaseLocalizedMonth(4); } bool TestPlugin::testPlugin() diff --git a/src/webview/tabwidget.cpp b/src/webview/tabwidget.cpp index 082249993..b41bf7388 100644 --- a/src/webview/tabwidget.cpp +++ b/src/webview/tabwidget.cpp @@ -364,7 +364,7 @@ void TabWidget::closeTab(int index) if (count() == 1) { if (m_dontQuitWithOneTab) { - webView->setUrl(m_urlOnNewTab); + webView->load(m_urlOnNewTab); return; } else {