]> git.deb.at Git - pkg/abook.git/blobdiff - abook.c
Merged csv import filter
[pkg/abook.git] / abook.c
diff --git a/abook.c b/abook.c
index 9c42c08d802c87043eeea74922bafe436568672a..dd2757751bcaa5a94cd7b01cc225352c365c041c 100644 (file)
--- a/abook.c
+++ b/abook.c
@@ -322,6 +322,11 @@ launch_mutt(int item)
 #endif
        system(cmd);    
        free(cmd);
+       
+       /*
+        * we need to make sure that curses settings are correct
+        */
+       ui_init_curses();
 }
 
 void
@@ -343,6 +348,11 @@ launch_wwwbrowser(int item)
                system(cmd);
 
        free(cmd);
+
+       /*
+        * we need to make sure that curses settings are correct
+        */
+       ui_init_curses();
 }
 
 void *
@@ -407,11 +417,13 @@ convert(char *srcformat, char *srcfile, char *dstformat, char *dstfile)
        strlower(srcformat);
        strlower(dstformat);
 
+#ifndef DEBUG
        if( !strcmp(srcformat, dstformat) ) {
                printf( "input and output formats are the same\n"
                        "exiting...\n");
                exit(1);
        }
+#endif
 
        set_filenames();
        init_options();