diff options
author | Kevin MacMartin | 2015-06-10 00:37:50 -0400 |
---|---|---|
committer | Kevin MacMartin | 2015-06-10 00:37:50 -0400 |
commit | 2a4a0aa41ff7902e475c05dba854173a94d3885a (patch) | |
tree | 8a04ee642141443be9900c96e4800086c273e363 /tasknc-emptyfilter_fix.patch | |
download | aur-2a4a0aa41ff7902e475c05dba854173a94d3885a.tar.gz |
Initial import into AUR 4
Diffstat (limited to 'tasknc-emptyfilter_fix.patch')
-rw-r--r-- | tasknc-emptyfilter_fix.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tasknc-emptyfilter_fix.patch b/tasknc-emptyfilter_fix.patch new file mode 100644 index 000000000000..e8474af11977 --- /dev/null +++ b/tasknc-emptyfilter_fix.patch @@ -0,0 +1,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 */ |