]> git.deb.at Git - pkg/abook.git/blobdiff - ui.c
Attempt to improve --datafile behavior
[pkg/abook.git] / ui.c
diff --git a/ui.c b/ui.c
index 695577e5d7fcd560b632e38fb73815698eac6ecb..1630a82f8545bff46712bf720ae1a0be56208c5d 100644 (file)
--- a/ui.c
+++ b/ui.c
@@ -44,6 +44,8 @@
 extern int items, curitem;
 extern char *datafile;
 
+extern int alternative_datafile;
+
 /*
  * internal variables
  */
@@ -629,4 +631,6 @@ ui_open_datafile()
 
        refresh_screen();
        free(filename);
+
+       alternative_datafile = TRUE;
 }