summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorCasper van Donderen <casper.vandonderen@nokia.com>2011-07-07 11:01:28 +0200
committerCasper van Donderen <casper.vandonderen@nokia.com>2011-07-07 11:01:28 +0200
commit52c2bf0e0dc5bcad1b75f9b8d817b39ca7754476 (patch)
treecd0f8ea2a7ef95254a91e74410f2cdf3fc5df3c8 /demos
parentcc504be6500911d9109f513a60c8116cacb39fe4 (diff)
downloadqt4-tools-52c2bf0e0dc5bcad1b75f9b8d817b39ca7754476.tar.gz
Update the Window title when closing the last tab.
Fixes: QTBUG-20243 Reviewed-By: Kevin Wright
Diffstat (limited to 'demos')
-rw-r--r--demos/browser/tabwidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/browser/tabwidget.cpp b/demos/browser/tabwidget.cpp
index 9ce9fb8c37..d8b9db1a48 100644
--- a/demos/browser/tabwidget.cpp
+++ b/demos/browser/tabwidget.cpp
@@ -438,6 +438,7 @@ WebView *TabWidget::newTab(bool makeCurrent)
addTab(emptyWidget, tr("(Untitled)"));
connect(this, SIGNAL(currentChanged(int)),
this, SLOT(currentChanged(int)));
+ currentChanged(currentIndex());
return 0;
}