diff options
author | kh <qtc-committer@nokia.com> | 2009-07-01 14:18:57 +0200 |
---|---|---|
committer | kh <qtc-committer@nokia.com> | 2009-07-01 14:18:57 +0200 |
commit | f6872e6b7a18b946c7428916c7096b82560a9cc6 (patch) | |
tree | 7c966cbdeb890d401ddd353a96b09adbe529844e /tools | |
parent | fe889557bcf3f4744205ba65b330276b5dc41c61 (diff) |
Do not start Assistant without at least an empty page.
Noticed while looking into task 256903, since in case there are no
recent shown pages,we would start Assistant only showning the search.
Task-number: 256903
Reviewed-by: kh
Diffstat (limited to 'tools')
-rw-r--r-- | tools/assistant/tools/assistant/centralwidget.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/assistant/tools/assistant/centralwidget.cpp b/tools/assistant/tools/assistant/centralwidget.cpp index 385f0bb579..64c2a800ea 100644 --- a/tools/assistant/tools/assistant/centralwidget.cpp +++ b/tools/assistant/tools/assistant/centralwidget.cpp @@ -427,8 +427,11 @@ void CentralWidget::setLastShownPages() QString::SkipEmptyParts); const int pageCount = lastShownPageList.count(); - if (pageCount == 0 && usesDefaultCollection) { - setSource(QUrl(QLatin1String("help"))); + if (pageCount == 0) { + if (usesDefaultCollection) + setSource(QUrl(QLatin1String("help"))); + else + setSource(QUrl(QLatin1String("about:blank"))); return; } |