Issue a note when "bsave" is aborted because of missing filename.
authorYann Dirson <ydirson@free.fr>
Fri, 21 Feb 2014 22:10:46 +0000 (23:10 +0100)
committerYann Dirson <ydirson@free.fr>
Sat, 22 Feb 2014 09:46:23 +0000 (10:46 +0100)
gnushogi/commondsp.c

index 14fd387..bcd84e1 100644 (file)
@@ -1039,8 +1039,10 @@ BookSave(void)
         RequestInputString(fname, sizeof(fname)-1);
     }
 
-    if (fname[0] == '\0')
+    if (fname[0] == '\0') {
+        dsp->AlwaysShowMessage("aborting book save");
         return;
+    }
 
     if ((fd = fopen(fname, "a")) != NULL)
     {