Commit 2cc4d85b authored by Matthias Möller's avatar Matthias Möller
Browse files

abort if no side was found

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent f4f32d7c
......@@ -203,9 +203,11 @@ void HelpWidget::activateLink(const QUrl& _url)
//set tree to the right entry
//this is _slow_, so do not use it in function "linkActivated". in "linkActivated" the entry is already selected by the user
QModelIndex modelIndex = helpEngine_->contentWidget()->indexOf(_url);
helpEngine_->contentWidget()->setCurrentIndex( modelIndex );
if (modelIndex.isValid())
helpEngine_->contentWidget()->setCurrentIndex( modelIndex );
Supports Markdown
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