# HG changeset patch # User zas_ # Date 1211096217 0 # Node ID ac0ede6a53cfe4de63ac0139ad93dfdf4073a578 # Parent 2c9184126cf9a9bd6f2d0bd00ab2bfea2035fd98 Do not create log window more than once. diff -r 2c9184126cf9 -r ac0ede6a53cf src/logwindow.c --- a/src/logwindow.c Sat May 17 22:37:04 2008 +0000 +++ b/src/logwindow.c Sun May 18 07:36:57 2008 +0000 @@ -171,13 +171,16 @@ void log_window_new(void) { - LogWindow *logwin; + if (logwindow == NULL) + { + LogWindow *logwin; - logwin = log_window_create(); - log_window_init(logwin); - log_window_show(logwin); + logwin = log_window_create(); + log_window_init(logwin); + logwindow = logwin; + } - logwindow = logwin; + log_window_show(logwindow); } void log_window_append(const gchar *str, LogType type)