From 602e5f932c3c90e0ff0c709ddec3978de5b487ff Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Wed, 17 Mar 2021 22:16:27 +0200 Subject: SidebarWidget: Crash when deleting identity Refer to the context menu item and not the hover item, since hover state may have been lost. --- src/ui/sidebarwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/sidebarwidget.c') diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index 22170f38..4497506d 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c @@ -1105,7 +1105,7 @@ static iBool processEvent_SidebarWidget_(iSidebarWidget *d, const SDL_Event *ev) 2); return iTrue; } - deleteIdentity_GmCerts(certs_App(), hoverIdentity_SidebarWidget_(d)); + deleteIdentity_GmCerts(certs_App(), menuIdentity_SidebarWidget_(d)); postCommand_App("idents.changed"); return iTrue; } -- cgit v1.2.3