[gimp-perl] run_mode can only be defined.



commit cdbd5e9a330cacd96b4699e90034715ae3dc4ba8
Author: Ed J <edj src gnome org>
Date:   Tue Jun 17 02:52:37 2014 +0100

    run_mode can only be defined.

 Gimp/Fu.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/Gimp/Fu.pm b/Gimp/Fu.pm
index a5524a2..7135aab 100644
--- a/Gimp/Fu.pm
+++ b/Gimp/Fu.pm
@@ -324,7 +324,7 @@ sub make_ui_closure {
          }
       }
       warn "perlsub: rm=$run_mode" if $Gimp::verbose >= 2;
-      if ($run_mode == Gimp::RUN_NONINTERACTIVE or not defined $run_mode) {
+      if ($run_mode == Gimp::RUN_NONINTERACTIVE) {
          # nop
       } elsif ($run_mode == Gimp::RUN_INTERACTIVE
           || $run_mode == Gimp::RUN_WITH_LAST_VALS) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]