bugfix: import and export todo items again!
This commit is contained in:
parent
976159fa56
commit
d374a2ec2e
@ -9,6 +9,9 @@
|
|||||||
* src/custom.c
|
* src/custom.c
|
||||||
* src/help.c
|
* src/help.c
|
||||||
* src/notify.c: calcurse version removed from menu titles
|
* src/notify.c: calcurse version removed from menu titles
|
||||||
|
|
||||||
|
* src/args.c (parse_args): fixed a bug that prevented the todo
|
||||||
|
items from being imported or exported
|
||||||
|
|
||||||
2009-07-11 Frederic Culot <frederic@culot.org>
|
2009-07-11 Frederic Culot <frederic@culot.org>
|
||||||
|
|
||||||
|
@ -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
|
* Calcurse - text-based organizer
|
||||||
@ -847,14 +847,20 @@ parse_args (int argc, char **argv, conf_t *conf)
|
|||||||
if (iflag)
|
if (iflag)
|
||||||
{
|
{
|
||||||
io_check_file (path_apts, (int *)0);
|
io_check_file (path_apts, (int *)0);
|
||||||
|
io_check_file (path_todo, (int *)0);
|
||||||
io_load_app ();
|
io_load_app ();
|
||||||
|
io_load_todo ();
|
||||||
io_import_data (IO_IMPORT_ICAL, conf, ifile);
|
io_import_data (IO_IMPORT_ICAL, conf, ifile);
|
||||||
io_save_apts ();
|
io_save_apts ();
|
||||||
|
io_save_todo ();
|
||||||
non_interactive = 1;
|
non_interactive = 1;
|
||||||
}
|
}
|
||||||
if (xflag)
|
if (xflag)
|
||||||
{
|
{
|
||||||
|
io_check_file (path_apts, (int *)0);
|
||||||
|
io_check_file (path_todo, (int *)0);
|
||||||
io_load_app ();
|
io_load_app ();
|
||||||
|
io_load_todo ();
|
||||||
io_export_data (xfmt, conf);
|
io_export_data (xfmt, conf);
|
||||||
non_interactive = 1;
|
non_interactive = 1;
|
||||||
return non_interactive;
|
return non_interactive;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user