Even child windows need to hook into the screen destroyed signal to
avoid having a dangling screen pointer.
Change-Id: I7b613356c333be6e9dfdf5db45f70a521a9b8fe2
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
d->screen = parent->screen();
if (!d->screen)
d->screen = QGuiApplication::primaryScreen();
d->screen = parent->screen();
if (!d->screen)
d->screen = QGuiApplication::primaryScreen();
+ connect(d->screen, SIGNAL(destroyed(QObject*)), this, SLOT(screenDestroyed(QObject*)));
QGuiApplicationPrivate::window_list.prepend(this);
}
QGuiApplicationPrivate::window_list.prepend(this);
}
d->screen = parent->screen();
if (!d->screen)
d->screen = QGuiApplication::primaryScreen();
d->screen = parent->screen();
if (!d->screen)
d->screen = QGuiApplication::primaryScreen();
+ connect(d->screen, SIGNAL(destroyed(QObject*)), this, SLOT(screenDestroyed(QObject*)));
QGuiApplicationPrivate::window_list.prepend(this);
}
QGuiApplicationPrivate::window_list.prepend(this);
}