mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +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:
parent
399d862a35
commit
d47927feff
@ -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()
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user