From 8c8d8ed29f14b3f834ed4da9c440cc42de3a5581 Mon Sep 17 00:00:00 2001 From: Patrick Star Date: Tue, 24 Feb 2009 17:53:09 +0100 Subject: 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 --- src/shared/help/indexwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared') 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()); } -- cgit v1.2.1