summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2007-10-16 19:14:40 +0000
committerFrederic Culot <calcurse@culot.org>2007-10-16 19:14:40 +0000
commit788ba6fc5cab0b0b88c2c032c4a32556fe79289b (patch)
tree86688f0b2bcc20cf57c1bb181af5dfc387e140f6
parentc933021597618499e6da878b129aeac9308556e3 (diff)
downloadcalcurse-788ba6fc5cab0b0b88c2c032c4a32556fe79289b.zip
bugfix: do not stop thread in notify_config_bar() if it was not started before
-rwxr-xr-xsrc/notify.c4
1 files changed, 2 insertions, 2 deletions
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);