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:
parent
97bdaa5e5f
commit
828dbf436f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user