From 5b75e14696c9d0452e6e393b61ccf74399665d64 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Mon, 27 Feb 2017 16:02:49 +0100 Subject: Fixed crash when closing the first tab --- src/widgets/webviewtabbar.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/widgets/webviewtabbar.h') diff --git a/src/widgets/webviewtabbar.h b/src/widgets/webviewtabbar.h index 9029bf5..91e55d0 100644 --- a/src/widgets/webviewtabbar.h +++ b/src/widgets/webviewtabbar.h @@ -32,20 +32,21 @@ public: WebViewTabBar(QWidget *parent = 0); ~WebViewTabBar(); - int addTab(QWebEngineProfile *profile, const QUrl &url); void setProfile(QWebEngineProfile *profile); - WebView *currentView(); signals: void currentTabChanged(WebView *view); +public slots: + int addTab(QWebEngineProfile *profile, const QUrl &url); + void removeTab(int index); + protected: QSize tabSizeHint(int index) const; private slots: void handleCurrentChanged(int index); - void handleTabClose(int index); void updateTabText(WebView *view, const QString &text); void updateVectorArrangement(int from, int to); -- cgit v1.2.1