Browse Source

UI: Fix segfault when no system tray exists

Cray Elliott 8 năm trước cách đây
mục cha
commit
c47cb25434
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      UI/window-basic-main.cpp

+ 1 - 0
UI/window-basic-main.cpp

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