summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorkh <qtc-committer@nokia.com>2009-04-23 13:14:32 (GMT)
committerkh <qtc-committer@nokia.com>2009-04-23 13:14:32 (GMT)
commit6d0bdd9a3130985451c61d8caa53148c10263059 (patch)
treec298ff29156cdd68a899a1082b7cf48c70015388 /tools
parenta5c7f0c0ea7dc47cf7cbd740af3dc6b241d68ffb (diff)
downloadQt-6d0bdd9a3130985451c61d8caa53148c10263059.zip
Qt-6d0bdd9a3130985451c61d8caa53148c10263059.tar.gz
Qt-6d0bdd9a3130985451c61d8caa53148c10263059.tar.bz2
fixes open an empty page on invalid keyword
Diffstat (limited to 'tools')
-rw-r--r--tools/assistant/tools/assistant/indexwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/assistant/tools/assistant/indexwindow.cpp b/tools/assistant/tools/assistant/indexwindow.cpp
index 0beb5ee..a2c0950 100644
--- a/tools/assistant/tools/assistant/indexwindow.cpp
+++ b/tools/assistant/tools/assistant/indexwindow.cpp
@@ -197,6 +197,8 @@ void IndexWindow::open(QHelpIndexWidget* indexWidget, const QModelIndex &index)
url = tc.link();
} else if (links.count() == 1) {
url = links.constBegin().value();
+ } else {
+ return;
}
if (url.path().endsWith(QLatin1String(".pdf"), Qt::CaseInsensitive))