Commit 0b7bd311 authored by Andreas Traczyk's avatar Andreas Traczyk

fix crash on app close

Change-Id: Ib55138076457b51651d9e806249fbd55a8682ab8
parent b15c83a0
......@@ -152,6 +152,8 @@ MainWindow::MainWindow(QWidget* parent) :
connect(windowHandle(), &QWindow::activeChanged,
[this]() {
if (!qApp)
return;
auto screenNumber = qApp->desktop()->screenNumber();
QScreen* screen = qApp->screens().at(screenNumber);
windowHandle()->setScreen(nullptr);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment