aboutsummaryrefslogtreecommitdiff
path: root/src/gui_peaksearch.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-07-03 15:23:04 +0200
committerThomas White <taw@physics.org>2020-07-29 18:53:45 +0200
commit0e8a06927065c275e5e235c9f6ebcb0a397efc81 (patch)
treecf4cee7832351910086fbe0da4b40297c5e71619 /src/gui_peaksearch.c
parent92a3939402ee030755440af5b525e7af8155d34f (diff)
Don't attempt to peak search when reading from stream
Diffstat (limited to 'src/gui_peaksearch.c')
-rw-r--r--src/gui_peaksearch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui_peaksearch.c b/src/gui_peaksearch.c
index 7a147278..ada652a6 100644
--- a/src/gui_peaksearch.c
+++ b/src/gui_peaksearch.c
@@ -49,8 +49,8 @@
void update_peaks(struct crystfelproject *proj)
{
if ( proj->n_frames == 0 ) return;
-
if ( proj->cur_image == NULL ) return;
+ if ( proj->stream != NULL ) return;
if ( proj->show_peaks ) {