diff options
author | Thomas White <taw@physics.org> | 2020-05-05 12:27:07 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:42:57 +0200 |
commit | 9a45383ceca04f76aab846dc8c998082db85d2b7 (patch) | |
tree | 0030cb3ba0a2358444771389d077ff013fbc974c /src/gui_peaksearch.c | |
parent | b73cd82b31281d2359fccf18f0b1a3d2b9ed3032 (diff) |
Confirm exit and save project
Diffstat (limited to 'src/gui_peaksearch.c')
-rw-r--r-- | src/gui_peaksearch.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui_peaksearch.c b/src/gui_peaksearch.c index 0fdea92d..5d4903cd 100644 --- a/src/gui_peaksearch.c +++ b/src/gui_peaksearch.c @@ -150,6 +150,7 @@ static void int_param_callback(GtkWidget *entry, } *(cbvals->pival) = val; + cbvals->proj->unsaved = 1; update_peaks(cbvals->proj); } @@ -167,6 +168,7 @@ static void float_param_callback(GtkWidget *entry, } *(cbvals->pfval) = val; + cbvals->proj->unsaved = 1; update_peaks(cbvals->proj); } @@ -356,6 +358,7 @@ static void peaksearch_algo_changed(GtkWidget *combo, /* FIXME: Radii */ gtk_widget_show_all(proj->peak_vbox); + proj->unsaved = 1; update_peaks(proj); } |