1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

[Fix] Fixed crash with "don't quit upon last tab" option

- when closing last tab with image, QWebView::setUrl() was
  for some reason crashing
This commit is contained in:
nowrep 2012-02-18 23:21:36 +01:00
parent 399d862a35
commit d47927feff
2 changed files with 1 additions and 3 deletions

View File

@ -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()

View File

@ -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 {