Commit 8c8d8ed2 authored by Patrick Star's avatar Patrick Star

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
parent 3fcb20d6
......@@ -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());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment