Mercurial > clickerconvert
diff src/main.cpp @ 4:5c256892042c
Always silence debug output by default
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 22 Mar 2016 15:14:23 +0100 |
parents | 8b4c49c92451 |
children | 03dad1cff5b9 |
line wrap: on
line diff
--- a/src/main.cpp Tue Mar 22 10:39:19 2016 +0100 +++ b/src/main.cpp Tue Mar 22 15:14:23 2016 +0100 @@ -38,11 +38,7 @@ // Q_IMPORT_PLUGIN(QXcbIntegrationPlugin) #endif -#ifdef IS_TAG_BUILD bool g_debug = false; -#else -bool g_debug = true; -#endif QtMessageHandler g_default_msg_handler = NULL; @@ -124,11 +120,7 @@ parser.process(app); -#ifdef IS_TAG_BUILD - g_debug = parser.isSet(debugOpt); -#else - g_debug = true; -#endif + g_debug = parser.isSet("debug"); g_default_msg_handler = qInstallMessageHandler(filterDebugOutput);