From 788ba6fc5cab0b0b88c2c032c4a32556fe79289b Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Tue, 16 Oct 2007 19:14:40 +0000 Subject: bugfix: do not stop thread in notify_config_bar() if it was not started before --- src/notify.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/notify.c b/src/notify.c index 8681bac..4072443 100755 --- a/src/notify.c +++ b/src/notify.c @@ -1,4 +1,4 @@ -/* $calcurse: notify.c,v 1.20 2007/08/19 13:16:45 culot Exp $ */ +/* $calcurse: notify.c,v 1.21 2007/10/16 19:14:40 culot Exp $ */ /* * Calcurse - text-based organizer @@ -530,11 +530,11 @@ notify_config_bar(void) pthread_mutex_lock(&nbar->mutex); nbar->show = !nbar->show; pthread_mutex_unlock(&nbar->mutex); - notify_stop_main_thread(); if (notify_bar()) { notify_start_main_thread(); win_row = row - 3; } else { + notify_stop_main_thread(); win_row = row - 2; } delwin(conf_win); -- cgit v1.2.3-54-g00ecf