UI: Fix segfault when no system tray exists

This commit is contained in:
Cray Elliott committed 2017-03-23 16:47:42 -07:00
1 parent a6db485452
commit c47cb25434
1 file changed
+1
+1
View File
@@ -2918,6 +2918,7 @@ void OBSBasic::changeEvent(QEvent *event)
{
if (event->type() == QEvent::WindowStateChange &&
isMinimized() &&
trayIcon &&
trayIcon->isVisible() &&
sysTrayMinimizeToTray()) {