diff options
author | Thomas White <taw@physics.org> | 2020-05-07 16:45:27 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:42:57 +0200 |
commit | fe69017a159bc639d4bafe82c306f82c1ecff247 (patch) | |
tree | 40d0d51e39ee49a262cf1297735abff24f5360d9 | |
parent | d9087e6c23bf9cdc7300f21fb10da7dca8113f76 (diff) |
Remove info bar when indexamajig exits
-rw-r--r-- | src/gui_backend_local.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui_backend_local.c b/src/gui_backend_local.c index 5e8ffa84..9e7d5559 100644 --- a/src/gui_backend_local.c +++ b/src/gui_backend_local.c @@ -49,6 +49,7 @@ static void watch_indexamajig(GPid pid, gint status, gpointer vp) STATUS("Indexamajig exited with status %i\n", status); priv->indexamajig_running = 0; g_spawn_close_pid(priv->indexamajig_pid); + remove_infobar(proj); } @@ -235,10 +236,7 @@ static void cancel(struct crystfelproject *proj) { struct local_backend_priv *priv = proj->backend_private; - if ( priv->indexamajig_pid == 0 ) { - remove_infobar(proj); - return; - } + if ( !priv->indexamajig_running ) return; ERROR("Stopping indexamajig.\n"); kill(priv->indexamajig_pid, SIGQUIT); |