diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-06-23 20:18:17 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-06-23 20:18:17 +0000 |
commit | 7d1f4d4dfab602f367228801916882316a8fea48 (patch) | |
tree | 1db20be85adfc0702ba58914f9a0efa38e75ba98 /gtk/main.c | |
parent | 826107f6cfbda0b165532635639e752f88432f0d (diff) |
Win32: "fix" handling of create_console(), hopefully clarifying usage of the corresponding prefs flag
svn path=/trunk/; revision=14735
Diffstat (limited to 'gtk/main.c')
-rw-r--r-- | gtk/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/main.c b/gtk/main.c index b752e94a25..dfe29a1121 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -2599,7 +2599,7 @@ WinMain (struct HINSTANCE__ *hInstance, void create_console(void) { - if (!has_console && prefs.gui_console_open != console_open_never) { + if (!has_console) { /* We have no console to which to print the version string, so create one and make it the standard input, output, and error. */ if (!AllocConsole()) @@ -2662,7 +2662,9 @@ console_log_handler(const char *log_domain, GLogLevelFlags log_level, today = localtime(&curr); #ifdef _WIN32 - create_console(); + if (prefs.gui_console_open != console_open_never) { + create_console(); + } if (has_console) { /* For some unknown reason, the above doesn't appear to actually cause anything to be sent to the standard output, so we'll just splat the |