hide a lot of color debugging noise
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 12 Dec 2014 18:26:17 +0000 (13:26 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 12 Dec 2014 20:27:32 +0000 (15:27 -0500)
gtk2_ardour/ui_config.cc

index 22ac72d240fdf9be353465e765d3699fcbb7f5cd..b09442a588e6b1ff651ba89cc88df57542af5560 100644 (file)
@@ -655,7 +655,12 @@ UIConfiguration::color (const std::string& name, bool* failed) const
                }
        }
        
-       cerr << string_compose (_("Color %1 not found"), name) << endl;
+       if (!failed) {
+               /* only show this message if the caller wasn't interested in
+                  the fail status.
+               */
+               cerr << string_compose (_("Color %1 not found"), name) << endl;
+       }
 
        if (failed) {
                *failed = true;