fixed stop button in editor dialog
authorVladimir Nadvornik <nadvornik@suse.cz>
Tue, 22 Jul 2008 17:57:22 +0000 (17:57 +0000)
committerVladimir Nadvornik <nadvornik@suse.cz>
Tue, 22 Jul 2008 17:57:22 +0000 (17:57 +0000)
src/editors.c

index 5c22eff..41bc33f 100644 (file)
@@ -727,7 +727,10 @@ static gint editor_command_next_finish(EditorData *ed, gint status)
 
                ed->list = g_list_remove_link(ed->list, fd_element);
                if (ed->callback)
+                       {
                        cont = ed->callback(ed->list ? ed : NULL, ed->flags, fd_element, ed->data);
+                       if (ed->stopping && cont == EDITOR_CB_CONTINUE) cont = EDITOR_CB_SKIP;
+                       }
                filelist_free(fd_element);
                }
        else