diff options
author | Thomas White <taw@physics.org> | 2020-08-25 17:24:04 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-08-25 17:24:04 +0200 |
commit | e6dd5c670fe12ea1ba8db5cecbd7cc87ff50c54f (patch) | |
tree | b10289e2b202e1aa9f84fdd181e15217493c6103 /src | |
parent | 295b6184171bdd230e5e61f0ba2ad26d504062a8 (diff) |
Fix show peaks/refls logic
Diffstat (limited to 'src')
-rw-r--r-- | src/gui_index.c | 4 | ||||
-rw-r--r-- | src/gui_peaksearch.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/gui_index.c b/src/gui_index.c index 7d672ccd..e58a4c7e 100644 --- a/src/gui_index.c +++ b/src/gui_index.c @@ -351,6 +351,8 @@ static void run_indexing_once(struct crystfelproject *proj) static void index_one_response_sig(GtkWidget *dialog, gint resp, struct crystfelproject *proj) { + GtkWidget *w; + if ( resp == GTK_RESPONSE_OK ) { get_indexing_opts(proj, CRYSTFEL_INDEXING_OPTS(proj->indexing_opts)); @@ -359,6 +361,8 @@ static void index_one_response_sig(GtkWidget *dialog, gint resp, gtk_widget_destroy(dialog); proj->indexing_opts = NULL; + w = gtk_ui_manager_get_widget(proj->ui, "/ui/mainwindow/view/refls"); + gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(w), 1); } diff --git a/src/gui_peaksearch.c b/src/gui_peaksearch.c index c3444fe4..97df46b4 100644 --- a/src/gui_peaksearch.c +++ b/src/gui_peaksearch.c @@ -52,6 +52,9 @@ void update_peaks(struct crystfelproject *proj) if ( proj->cur_image == NULL ) return; if ( proj->stream != NULL ) return; + crystfel_image_view_set_show_peaks(CRYSTFEL_IMAGE_VIEW(proj->imageview), + proj->show_peaks); + if ( proj->show_peaks ) { image_feature_list_free(proj->cur_image->features); @@ -114,9 +117,6 @@ void update_peaks(struct crystfelproject *proj) } - crystfel_image_view_set_show_peaks(CRYSTFEL_IMAGE_VIEW(proj->imageview), - 1); - crystfel_image_view_set_image(CRYSTFEL_IMAGE_VIEW(proj->imageview), proj->cur_image); } |