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

abort if no side was found

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13948 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
helpEngine_->contentWidget()->hide();
QModelIndex modelIndex = helpEngine_->contentWidget()->indexOf(_url);
helpEngine_->contentWidget()->setCurrentIndex( modelIndex );
if (modelIndex.isValid())
helpEngine_->contentWidget()->setCurrentIndex( modelIndex );
helpEngine_->contentWidget()->show();
}
......
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