Przeglądaj źródła

Merge pull request #855 from MP2E/master

UI: Fix segfault when no system tray exists
Jim 9 lat temu
rodzic
commit
3a3015aecd
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      UI/window-basic-main.cpp

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

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