mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
[Crash Fix:] closing tabs (deleting WebTabs)
This commit is contained in:
parent
fc2e9fdb95
commit
86896447cb
@ -2,7 +2,7 @@
|
||||
#include "qupzilla.h"
|
||||
#include "webview.h"
|
||||
#include "mainapplication.h"
|
||||
#include "autofillwidget.h"
|
||||
#include "autofillnotification.h"
|
||||
|
||||
AutoFillModel::AutoFillModel(QupZilla* mainClass, QObject *parent) :
|
||||
QObject(parent)
|
||||
|
@ -37,6 +37,7 @@ public:
|
||||
|
||||
public slots:
|
||||
void showUrl(const QUrl &url, bool empty = true);
|
||||
void checkBookmark();
|
||||
|
||||
private slots:
|
||||
void siteIconChanged();
|
||||
@ -44,7 +45,6 @@ private slots:
|
||||
void textEdit();
|
||||
void showPopup();
|
||||
void bookmarkIconClicked();
|
||||
void checkBookmark();
|
||||
void showSiteInfo();
|
||||
void rssIconClicked();
|
||||
|
||||
|
@ -63,10 +63,11 @@ bool WebView::isCurrent()
|
||||
{
|
||||
if (!tabWidget())
|
||||
return false;
|
||||
if (qobject_cast<WebTab*>(tabWidget()->widget(tabWidget()->currentIndex()))->view() == this)
|
||||
return true;
|
||||
WebTab* webTab = qobject_cast<WebTab*>(tabWidget()->widget(tabWidget()->currentIndex()));
|
||||
if (!webTab)
|
||||
return false;
|
||||
|
||||
return false;
|
||||
return (webTab->view() == this);
|
||||
}
|
||||
|
||||
void WebView::urlChanged(const QUrl &url)
|
||||
|
Loading…
Reference in New Issue
Block a user