aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2009-07-12 18:16:11 +0000
committerFrederic Culot <calcurse@culot.org>2009-07-12 18:16:11 +0000
commitd374a2ec2ea14fff31140d7945647ea947794f2f (patch)
treefad8eb1d8a42dd1ee5295d038c4c2a67e2233e57 /src
parent976159fa565f4e2da85dd0f55b2bc3a659d1d2f1 (diff)
downloadcalcurse-d374a2ec2ea14fff31140d7945647ea947794f2f.tar.gz
calcurse-d374a2ec2ea14fff31140d7945647ea947794f2f.zip
bugfix: import and export todo items again!
Diffstat (limited to 'src')
-rwxr-xr-xsrc/args.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/args.c b/src/args.c
index 5c8889c..0216499 100755
--- a/src/args.c
+++ b/src/args.c
@@ -1,4 +1,4 @@
-/* $calcurse: args.c,v 1.54 2009/07/12 16:21:58 culot Exp $ */
+/* $calcurse: args.c,v 1.55 2009/07/12 18:16:11 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -847,14 +847,20 @@ parse_args (int argc, char **argv, conf_t *conf)
if (iflag)
{
io_check_file (path_apts, (int *)0);
+ io_check_file (path_todo, (int *)0);
io_load_app ();
+ io_load_todo ();
io_import_data (IO_IMPORT_ICAL, conf, ifile);
io_save_apts ();
+ io_save_todo ();
non_interactive = 1;
}
if (xflag)
{
+ io_check_file (path_apts, (int *)0);
+ io_check_file (path_todo, (int *)0);
io_load_app ();
+ io_load_todo ();
io_export_data (xfmt, conf);
non_interactive = 1;
return non_interactive;