projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76d8576
)
Fix crash after strange behaviour of the "Really Continue" dialog
author
Michael Cross
<mc@xi2.org>
Mon, 22 Jan 2018 00:21:49 +0000
(
01:21
+0100)
committer
Andreas Rönnquist
<andreas@ronnquist.net>
Mon, 22 Jan 2018 00:37:17 +0000
(
01:37
+0100)
src/ui_utildlg.c
patch
|
blob
|
history
diff --git
a/src/ui_utildlg.c
b/src/ui_utildlg.c
index
ea17bb2
..
601d307
100644
(file)
--- a/
src/ui_utildlg.c
+++ b/
src/ui_utildlg.c
@@
-186,8
+186,15
@@
static gboolean generic_dialog_key_press_cb(GtkWidget *widget, GdkEventKey *even
if (event->keyval == GDK_KEY_Escape)
{
- if (gd->cancel_cb) gd->cancel_cb(gd, gd->data);
- else if (auto_close) generic_dialog_click_cb(widget, data);
+ if (gd->cancel_cb)
+ {
+ gd->cancel_cb(gd, gd->data);
+ if (auto_close) generic_dialog_close(gd);
+ }
+ else
+ {
+ if (auto_close) generic_dialog_click_cb(widget, data);
+ }
return TRUE;
}
return FALSE;