UI: Fix segfault when no system tray exists

This commit is contained in:
Cray Elliott 2017-03-10 05:15:35 -08:00
parent a6db485452
commit c47cb25434

View File

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