summarylogtreecommitdiffstats
path: root/tasknc-emptyfilter_fix.patch
blob: e8474af119772bb041262a940741fa9bd26fbd2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/src/tasklist.c b/src/tasklist.c
index 0c106c0..b392076 100644
--- a/src/tasklist.c
+++ b/src/tasklist.c
@@ -475,8 +475,12 @@ void tasklist_window() /* {{{ */
 		/* check for an empty task list */
 		if (head == NULL)
 		{
-			tnc_fprintf(logfp, LOG_ERROR, "it appears that your task list is empty. %s does not yet support empty task lists.", PROGNAME);
-			ncurses_end(-1);
+			if (strcmp(active_filter,"") == 0){
+				tnc_fprintf(logfp, LOG_ERROR, "it appears that your task list is empty. %s does not yet support empty task lists.", PROGNAME);
+				ncurses_end(-1);
+			}
+			active_filter = strdup("");
+			reload = true;
 		}
 
 		/* get the screen size */