summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorPatrick Star <qtc-committer@nokia.com>2009-02-24 17:53:09 +0100
committerPatrick Star <qtc-committer@nokia.com>2009-02-24 17:53:09 +0100
commit8c8d8ed29f14b3f834ed4da9c440cc42de3a5581 (patch)
treec6d93af1d56c1e0daa0ffe5295616f06b15c4ff4 /src/shared
parent3fcb20d6bb86c85dbedf91111e10822b8323fe50 (diff)
downloadqt-creator-8c8d8ed29f14b3f834ed4da9c440cc42de3a5581.tar.gz
Fixes: - crash while open invalid doc files
Task: - found by Denis RevBy: - Thomas AutoTest: - manual Details: - we have some broken doc entrys, they won't return a url at all
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/help/indexwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/help/indexwindow.cpp b/src/shared/help/indexwindow.cpp
index f55148c91d..87a95ecc7b 100644
--- a/src/shared/help/indexwindow.cpp
+++ b/src/shared/help/indexwindow.cpp
@@ -164,7 +164,7 @@ bool IndexWindow::eventFilter(QObject *obj, QEvent *e)
if (tc.exec() == QDialog::Accepted) {
CentralWidget::instance()->setSourceInNewTab(tc.link());
}
- } else {
+ } else if (links.count() == 1) {
CentralWidget::instance()->
setSourceInNewTab(links.constBegin().value());
}