0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

UI: Check for valid systen tray pointer

Fixes a potential crash that can happen if the system tray is not
initialized for whatever reason.
This commit is contained in:
jp9000 2019-05-01 12:11:05 -07:00
parent dd68493590
commit 767d534409

View File

@ -6866,6 +6866,8 @@ void OBSBasic::SystemTray(bool firstStarted)
{
if (!QSystemTrayIcon::isSystemTrayAvailable())
return;
if (!trayIcon)
return;
bool sysTrayWhenStarted = config_get_bool(GetGlobalConfig(),
"BasicWindow", "SysTrayWhenStarted");