aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2014-08-06 12:06:42 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2014-08-06 12:08:14 +0200
commitc2dc3109ae23fbdb4ee3951317bd1fbf1ec846e2 (patch)
tree19af6615b1a8832161118322009e4c30fbd439d0 /src
parentaa682f7a114eaea6dc265dc688cf0a45385b1537 (diff)
downloadcalcurse-c2dc3109ae23fbdb4ee3951317bd1fbf1ec846e2.tar.gz
calcurse-c2dc3109ae23fbdb4ee3951317bd1fbf1ec846e2.zip
Do not use filters in GC or import mode
Filtering items when running garbage collection or when importing data might result in data loss, so simply ignore filters here. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src')
-rw-r--r--src/args.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/args.c b/src/args.c
index c1e9fe5..4a022b5 100644
--- a/src/args.c
+++ b/src/args.c
@@ -669,16 +669,16 @@ int parse_args(int argc, char **argv)
} else if (gc) {
io_check_file(path_apts);
io_check_file(path_todo);
- io_load_app(&filter);
- io_load_todo(&filter);
+ io_load_app(NULL);
+ io_load_todo(NULL);
note_gc();
} else if (import) {
io_check_file(path_apts);
io_check_file(path_todo);
/* Get default pager in case we need to show a log file. */
vars_init();
- io_load_app(&filter);
- io_load_todo(&filter);
+ io_load_app(NULL);
+ io_load_todo(NULL);
io_import_data(IO_IMPORT_ICAL, ifile);
io_save_apts(path_apts);
io_save_todo(path_todo);