UI: Fix segfault when no system tray exists
parent
a6db485452
commit
c47cb25434
|
@ -2918,6 +2918,7 @@ void OBSBasic::changeEvent(QEvent *event)
|
|||
{
|
||||
if (event->type() == QEvent::WindowStateChange &&
|
||||
isMinimized() &&
|
||||
trayIcon &&
|
||||
trayIcon->isVisible() &&
|
||||
sysTrayMinimizeToTray()) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue