Merge pull request #3055 from thunder2/fix-notify

Fixed crash (NULL pointer access) in RsGUIEventManager::async_handleI…
This commit is contained in:
csoler 2025-12-06 10:09:28 +01:00 committed by GitHub
commit 6f33dcc8e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -398,7 +398,10 @@ void RsGUIEventManager::async_handleIncomingEvent(std::shared_ptr<const RsEvent>
if (rsPlugin) { if (rsPlugin) {
ToasterNotify *toasterNotify = rsPlugin->qt_toasterNotify(); ToasterNotify *toasterNotify = rsPlugin->qt_toasterNotify();
if (toasterNotify) { if (toasterNotify) {
insertToaster(toasterNotify->toasterItem()); ToasterItem *toasterItem = toasterNotify->toasterItem();
if (toasterItem) {
insertToaster(toasterItem);
}
continue; continue;
} }
} }