Close stream after exporting iCal item
Fixes GitHub issue #178. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
parent
5657e19e17
commit
7b81e69a19
1
src/io.c
1
src/io.c
@ -1186,6 +1186,7 @@ void io_export_data(enum export_type type, int export_uid)
|
|||||||
pcal_export_data(stream);
|
pcal_export_data(stream);
|
||||||
|
|
||||||
if (show_dialogs() && ui_mode == UI_CURSES) {
|
if (show_dialogs() && ui_mode == UI_CURSES) {
|
||||||
|
fclose(stream);
|
||||||
status_mesg(success, enter);
|
status_mesg(success, enter);
|
||||||
keys_wait_for_any_key(win[KEY].p);
|
keys_wait_for_any_key(win[KEY].p);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user