summaryrefslogtreecommitdiffstats
path: root/sw/programmer/linux/src/ui.c
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2017-09-07 14:25:39 +0200
committerNao Pross <naopross@thearcway.org>2017-09-07 14:25:39 +0200
commitcd89b3b3f30bdd98b725de0ea565f45fb4d9567c (patch)
treecea860c15430256cf0daebf903db10aae5879a23 /sw/programmer/linux/src/ui.c
parentadd test program for z80 (diff)
downloadz80uPC-cd89b3b3f30bdd98b725de0ea565f45fb4d9567c.tar.gz
z80uPC-cd89b3b3f30bdd98b725de0ea565f45fb4d9567c.zip
minor bug fix for ROM programmer
Diffstat (limited to '')
-rw-r--r--sw/programmer/linux/src/ui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/programmer/linux/src/ui.c b/sw/programmer/linux/src/ui.c
index 87dc0c7..b53ff0b 100644
--- a/sw/programmer/linux/src/ui.c
+++ b/sw/programmer/linux/src/ui.c
@@ -18,6 +18,7 @@ void ui_init(int *argc, char **argv[])
/* connect objects to callbacks */
window = GTK_WINDOW(gtk_builder_get_object(ui_builder, "window"));
+ g_signal_connect(window, "delete_event", G_CALLBACK(flash_close), NULL);
g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL);
connectbtn = GTK_BUTTON(gtk_builder_get_object(ui_builder, "connectbtn"));