From: Yann Dirson Date: Fri, 21 Feb 2014 22:10:46 +0000 (+0100) Subject: Issue a note when "bsave" is aborted because of missing filename. X-Git-Url: http://winboard.nl/cgi-bin?p=gnushogi.git;a=commitdiff_plain;h=bf2b048e82b1ebe7034e9107a61fdd86fce2a6b7 Issue a note when "bsave" is aborted because of missing filename. --- diff --git a/gnushogi/commondsp.c b/gnushogi/commondsp.c index 14fd387..bcd84e1 100644 --- a/gnushogi/commondsp.c +++ b/gnushogi/commondsp.c @@ -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) {