Skip to content

Commit

Permalink
Do not create log window more than once.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Monin committed May 18, 2008
1 parent aa1e905 commit c219d83
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/logwindow.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,16 @@ static void log_window_show(LogWindow *logwin)

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)
Expand Down

0 comments on commit c219d83

Please sign in to comment.