+ fixes #0002134: FreeCAD crashes when the window is restored and a plot is shown

This commit is contained in:
wmayer 2015-05-31 17:29:30 +02:00
parent a12f700aa2
commit 2e14552a50

View File

@ -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);
}