Mercurial > geeqie
diff src/menu.c @ 1400:67573155210c
Add helper macros EDITOR_ERRORS() and EDITOR_ERRORS_BUT_SKIPPED() to clean up the code a bit. Minor tidy up.
author | zas_ |
---|---|
date | Sun, 08 Mar 2009 15:30:15 +0000 |
parents | 9e7aed6ba6bd |
children | 3bc4967aaa57 |
line wrap: on
line diff
--- a/src/menu.c Sun Mar 08 15:02:18 2009 +0000 +++ b/src/menu.c Sun Mar 08 15:30:15 2009 +0000 @@ -76,12 +76,8 @@ work = work->next; gboolean active = TRUE; - if (fd_list) - { - gint flags = editor_command_parse(editor, fd_list, NULL); - if ((flags & EDITOR_ERROR_MASK) != 0) - active = FALSE; - } + if (fd_list && EDITOR_ERRORS(editor_command_parse(editor, fd_list, NULL))) + active = FALSE; if (active) {