summaryrefslogtreecommitdiffstats
path: root/tools/assistant
diff options
context:
space:
mode:
authorkh1 <qt-info@nokia.com>2010-02-17 12:33:28 (GMT)
committerkh1 <qt-info@nokia.com>2010-02-17 14:49:40 (GMT)
commitfd717e5e182433a8c68a6e84ad207e6bba154334 (patch)
treec37f3ae7963a77617f99f0da6693b8e30d6ccc65 /tools/assistant
parent5c1bcbf309339f017415c851ad74e928ed709e6b (diff)
downloadQt-fd717e5e182433a8c68a6e84ad207e6bba154334.zip
Qt-fd717e5e182433a8c68a6e84ad207e6bba154334.tar.gz
Qt-fd717e5e182433a8c68a6e84ad207e6bba154334.tar.bz2
Fix broken set last shown pagen when the last page was about:blank.
Reviewed-by: ck
Diffstat (limited to 'tools/assistant')
-rw-r--r--tools/assistant/tools/assistant/centralwidget.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/assistant/tools/assistant/centralwidget.cpp b/tools/assistant/tools/assistant/centralwidget.cpp
index d0a6e56..f56e9e3 100644
--- a/tools/assistant/tools/assistant/centralwidget.cpp
+++ b/tools/assistant/tools/assistant/centralwidget.cpp
@@ -333,9 +333,10 @@ void CentralWidget::setLastShownPages()
for (int curTab = 0; curTab < pageCount; ++curTab) {
const QString &curFile = lastShownPageList.at(curTab);
- if (helpEngine.findFile(curFile).isValid())
+ if (helpEngine.findFile(curFile).isValid()
+ || curFile == QLatin1String("about:blank")) {
setSourceInNewTab(curFile, zoomFactors.at(curTab).toFloat());
- else if (curTab + searchIsAttached <= tabToShow)
+ } else if (curTab + searchIsAttached <= tabToShow)
--tabToShow;
}