summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorCasper van Donderen <casper.vandonderen@nokia.com>2011-07-07 09:01:28 (GMT)
committerCasper van Donderen <casper.vandonderen@nokia.com>2011-07-07 09:01:28 (GMT)
commit52c2bf0e0dc5bcad1b75f9b8d817b39ca7754476 (patch)
treecd0f8ea2a7ef95254a91e74410f2cdf3fc5df3c8 /demos
parentcc504be6500911d9109f513a60c8116cacb39fe4 (diff)
downloadQt-52c2bf0e0dc5bcad1b75f9b8d817b39ca7754476.zip
Qt-52c2bf0e0dc5bcad1b75f9b8d817b39ca7754476.tar.gz
Qt-52c2bf0e0dc5bcad1b75f9b8d817b39ca7754476.tar.bz2
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 9ce9fb8..d8b9db1 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;
}