Merge pull request #1867 from tmatth/bugfix/tray-crash
UI: fix crash due to NULL dereference
This commit is contained in:
commit
131cfaf4f8
@ -6830,7 +6830,7 @@ void OBSBasic::IconActivated(QSystemTrayIcon::ActivationReason reason)
|
||||
void OBSBasic::SysTrayNotify(const QString &text,
|
||||
QSystemTrayIcon::MessageIcon n)
|
||||
{
|
||||
if (QSystemTrayIcon::supportsMessages()) {
|
||||
if (trayIcon && QSystemTrayIcon::supportsMessages()) {
|
||||
QSystemTrayIcon::MessageIcon icon =
|
||||
QSystemTrayIcon::MessageIcon(n);
|
||||
trayIcon->showMessage("OBS Studio", text, icon, 10000);
|
||||
|
Loading…
x
Reference in New Issue
Block a user