1
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:
nowrep 2011-03-03 15:54:12 +01:00
parent fc2e9fdb95
commit 86896447cb
3 changed files with 6 additions and 5 deletions

View File

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

View File

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

View File

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