diff options
author | Patrick Star <qtc-committer@nokia.com> | 2009-02-24 17:53:09 +0100 |
---|---|---|
committer | Patrick Star <qtc-committer@nokia.com> | 2009-02-24 17:53:09 +0100 |
commit | 8c8d8ed29f14b3f834ed4da9c440cc42de3a5581 (patch) | |
tree | c6d93af1d56c1e0daa0ffe5295616f06b15c4ff4 /src/shared | |
parent | 3fcb20d6bb86c85dbedf91111e10822b8323fe50 (diff) | |
download | qt-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.cpp | 2 |
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()); } |