Switch to correct page when changing Link property target - add comments

This commit is contained in:
pavltom
2024-03-04 18:00:41 +01:00
parent 04335d4060
commit 9b9086aeb4

View File

@@ -525,6 +525,7 @@ void DlgPropertyLink::onItemSelectionChanged()
auto vp = Base::freecad_dynamic_cast<Gui::ViewProviderDocumentObject>(
doc->getViewProvider(obj));
if(vp) {
// If the view provider uses a special window for rendering, switch to it
MDIView *view = vp->getMDIView();
if (view) {
doc->setActiveWindow(view);