freecad issue #25069 fix issue with selecting the plot tab / window from the menu bar

This commit is contained in:
chris
2025-11-07 20:24:26 -06:00
committed by Chris Hennes
parent cc6e054c79
commit ebfab06963

View File

@@ -1294,7 +1294,16 @@ void MainWindow::setActiveSubWindow(QWidget* window)
}
auto view = qobject_cast<MDIView*>(mdi->widget());
setActiveWindow(view);
if (view) {
setActiveWindow(view);
}
else {
// check for non mdiview widgets ie. the plot widget
d->mdiArea->setActiveSubWindow(mdi);
if (mdi->widget()) {
mdi->widget()->setFocus();
}
}
}
void MainWindow::setActiveWindow(MDIView* view)