Skip to content

Commit

Permalink
ticket:4983 Update the documentation browser when a new ModelWidget i…
Browse files Browse the repository at this point in the history
…s selected
  • Loading branch information
adeas31 committed Jul 5, 2018
1 parent d4dad55 commit ba22c5a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions OMEdit/OMEditGUI/Modeling/ModelWidgetContainer.cpp
Expand Up @@ -6072,6 +6072,12 @@ void ModelWidgetContainer::currentModelWidgetChanged(QMdiSubWindow *pSubWindow)
// update the Undo/Redo actions
pModelWidget->updateUndoRedoActions();
}
/* ticket:4983 Update the documentation browser when a new ModelWidget is selected.
* Provided that the Documentation Browser is already visible.
*/
if (pModelWidget && pModelWidget->getLibraryTreeItem() && MainWindow::instance()->getDocumentationDockWidget()->isVisible()) {
MainWindow::instance()->getDocumentationWidget()->showDocumentation(pModelWidget->getLibraryTreeItem());
}
}

/*!
Expand Down

0 comments on commit ba22c5a

Please sign in to comment.