aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-07-22 13:29:05 +0200
committerThomas White <taw@physics.org>2021-07-22 13:29:05 +0200
commite482fff9431500e6650493b483e4f6637861cbc9 (patch)
tree57839abc35c597c5a89370fa8186b1711b757aa7 /src
parentb86fddca5840c4765754327d62bb29ff830322db (diff)
GUI: Fix logic for ambiguity response
Diffstat (limited to 'src')
-rw-r--r--src/gui_ambi.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gui_ambi.c b/src/gui_ambi.c
index fd997a9d..b160c6ec 100644
--- a/src/gui_ambi.c
+++ b/src/gui_ambi.c
@@ -116,8 +116,6 @@ static char *get_str(GtkWidget *w)
static void ambi_response_sig(GtkWidget *dialog, gint resp,
struct ambi_window *win)
{
- int r = 0;
-
if ( resp == GTK_RESPONSE_ACCEPT ) {
int backend_idx;
@@ -173,10 +171,8 @@ static void ambi_response_sig(GtkWidget *dialog, gint resp,
}
- if ( !r ) {
- gtk_widget_destroy(dialog);
- win->proj->ambi_opts = NULL;
- }
+ gtk_widget_destroy(dialog);
+ win->proj->ambi_opts = NULL;
}