+ fixes #0002134: FreeCAD crashes when the window is restored and a plot is shown
This commit is contained in:
parent
a12f700aa2
commit
2e14552a50
|
@ -1462,8 +1462,8 @@ void MainWindow::changeEvent(QEvent *e)
|
|||
if (isActiveWindow()) {
|
||||
QMdiSubWindow* mdi = d->mdiArea->currentSubWindow();
|
||||
if (mdi) {
|
||||
MDIView* view =dynamic_cast<MDIView*>(mdi->widget());
|
||||
if (getMainWindow()->activeWindow() != view) {
|
||||
MDIView* view = dynamic_cast<MDIView*>(mdi->widget());
|
||||
if (view && getMainWindow()->activeWindow() != view) {
|
||||
d->activeView = view;
|
||||
Application::Instance->viewActivated(view);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user