1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Multi-window: Fix compile for non-OS X

This commit is contained in:
TheSpiritXIII 2015-07-30 07:53:36 -04:00 committed by tux3
parent 97bdaa5e5f
commit 828dbf436f

View File

@ -357,7 +357,9 @@ void Widget::init()
if (!Settings::getInstance().getShowSystemTray())
show();
#ifdef Q_OS_MAC
Nexus::getInstance().updateWindows();
#endif
}
bool Widget::eventFilter(QObject *obj, QEvent *event)
@ -373,7 +375,9 @@ bool Widget::eventFilter(QObject *obj, QEvent *event)
wasMaximized = false;
}
#ifdef Q_OS_MAC
emit windowStateChanged(windowState());
#endif
}
return false;
}