mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +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;
|
settingsPath = sPath;
|
||||||
//This function is called right after plugin is loaded
|
//This function is called right after plugin is loaded
|
||||||
qDebug() << __FUNCTION__ << "called";
|
qDebug() << __FUNCTION__ << "called";
|
||||||
|
|
||||||
qDebug() << HistoryModel::titleCaseLocalizedMonth(4);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TestPlugin::testPlugin()
|
bool TestPlugin::testPlugin()
|
||||||
|
@ -364,7 +364,7 @@ void TabWidget::closeTab(int index)
|
|||||||
|
|
||||||
if (count() == 1) {
|
if (count() == 1) {
|
||||||
if (m_dontQuitWithOneTab) {
|
if (m_dontQuitWithOneTab) {
|
||||||
webView->setUrl(m_urlOnNewTab);
|
webView->load(m_urlOnNewTab);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user