Author: abrander
Date: 2011-04-06 20:45:32 +0200 (Wed, 06 Apr 2011)
New Revision: 3959
Modified:
trunk/src/application.c
Log:
Only call rs_debug_setup() if debug flag given in main().
Modified: trunk/src/application.c
===================================================================
--- trunk/src/application.c 2011-04-06 18:43:39 UTC (rev 3958)
+++ trunk/src/application.c 2011-04-06 18:45:32 UTC (rev 3959)
@@ -666,7 +666,7 @@
RS_BLOB *rs;
gboolean do_test = FALSE;
gboolean use_system_theme = DEFAULT_CONF_USE_SYSTEM_THEME;
- gchar *debug;
+ gchar *debug = NULL;
GError *error = NULL;
GOptionContext *option_context;
@@ -700,9 +700,10 @@
g_print("option parsing failed: %s\n", error->message);
exit(1);
}
-
- rs_debug_setup(debug);
+ if (debug)
+ rs_debug_setup(debug);
+
gdk_threads_set_lock_functions(rs_gdk_lock, rs_gdk_unlock);
g_thread_init(NULL);
gdk_threads_init();
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit