diff --git a/src/control/control.c b/src/control/control.c index 59555fa11abe..c5fde8fc49cf 100644 --- a/src/control/control.c +++ b/src/control/control.c @@ -663,7 +663,7 @@ void dt_control_log(const char *msg, ...) const int old_idx = (dc->log_pos - 1) & (DT_CTL_LOG_SIZE-1); const gboolean timeout = dc->log_message_timeout_id; - if(timeout || g_strcmp0(escaped_msg, dc->log_message[old_idx])) + if(!timeout || g_strcmp0(escaped_msg, dc->log_message[old_idx])) { g_strlcpy(dc->log_message[dc->log_pos & (DT_CTL_LOG_SIZE-1)], escaped_msg, DT_CTL_LOG_MSG_SIZE); dc->log_pos++;