appicon: fix crash on right-click of dock icon without running app
aicon->icon->owner is NULL for stored dock apps that aren't running. Add null check before dereferencing.
This commit is contained in:
parent
6011f4226f
commit
958bb8f4a9
|
|
@ -634,6 +634,9 @@ void appIconMouseDown(WObjDescriptor * desc, WBackendEvent * event)
|
|||
if (aicon->editing || WCHECK_STATE(WSTATE_MODAL))
|
||||
return;
|
||||
|
||||
if (!aicon->icon->owner)
|
||||
return;
|
||||
|
||||
if (IsDoubleClick(scr, event)) {
|
||||
/* Middle or right mouse actions were handled on first click */
|
||||
if (event->u.button.button == Button1)
|
||||
|
|
|
|||
Loading…
Reference in New Issue