diff options
author | kh <qtc-committer@nokia.com> | 2009-04-23 13:14:32 (GMT) |
---|---|---|
committer | kh <qtc-committer@nokia.com> | 2009-04-23 13:14:32 (GMT) |
commit | 6d0bdd9a3130985451c61d8caa53148c10263059 (patch) | |
tree | c298ff29156cdd68a899a1082b7cf48c70015388 /tools/assistant | |
parent | a5c7f0c0ea7dc47cf7cbd740af3dc6b241d68ffb (diff) | |
download | Qt-6d0bdd9a3130985451c61d8caa53148c10263059.zip Qt-6d0bdd9a3130985451c61d8caa53148c10263059.tar.gz Qt-6d0bdd9a3130985451c61d8caa53148c10263059.tar.bz2 |
fixes open an empty page on invalid keyword
Diffstat (limited to 'tools/assistant')
-rw-r--r-- | tools/assistant/tools/assistant/indexwindow.cpp | 2 |
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)) |