summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-17 22:16:27 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-17 22:16:27 +0200
commit602e5f932c3c90e0ff0c709ddec3978de5b487ff (patch)
treeb47a467e8591c0af44d742d3716753e86ace7a2c
parent9683718f98d2d3c575ba2740022b25346d03452a (diff)
SidebarWidget: Crash when deleting identity
Refer to the context menu item and not the hover item, since hover state may have been lost.
-rw-r--r--src/ui/sidebarwidget.c2
1 files changed, 1 insertions, 1 deletions
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)
1105 2); 1105 2);
1106 return iTrue; 1106 return iTrue;
1107 } 1107 }
1108 deleteIdentity_GmCerts(certs_App(), hoverIdentity_SidebarWidget_(d)); 1108 deleteIdentity_GmCerts(certs_App(), menuIdentity_SidebarWidget_(d));
1109 postCommand_App("idents.changed"); 1109 postCommand_App("idents.changed");
1110 return iTrue; 1110 return iTrue;
1111 } 1111 }