UI: Fix segfault when no system tray exists

master
Cray Elliott 2017-03-10 05:15:35 -08:00
parent a6db485452
commit c47cb25434
1 changed files with 1 additions and 0 deletions

View File

@ -2918,6 +2918,7 @@ void OBSBasic::changeEvent(QEvent *event)
{
if (event->type() == QEvent::WindowStateChange &&
isMinimized() &&
trayIcon &&
trayIcon->isVisible() &&
sysTrayMinimizeToTray()) {