From 2247438c47b710a8783fabccde5c3c88d0fa886c Mon Sep 17 00:00:00 2001 From: dunsmoreb Date: Thu, 22 Dec 2011 22:05:20 -0600 Subject: [PATCH] QupZilla now quits when last tab is closed. --- src/webview/tabwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webview/tabwidget.cpp b/src/webview/tabwidget.cpp index 256f7b4d8..669c101a5 100644 --- a/src/webview/tabwidget.cpp +++ b/src/webview/tabwidget.cpp @@ -314,7 +314,7 @@ void TabWidget::setTabText(int index, const QString &text) void TabWidget::closeTab(int index) { if (count() == 1) { - return; + p_QupZilla->close(); } if (index == -1) { index = currentIndex();