projects
/
gnushogi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
25ede05
)
Issue a note when "bsave" is aborted because of missing filename.
author
Yann Dirson
<ydirson@free.fr>
Fri, 21 Feb 2014 22:10:46 +0000 (23:10 +0100)
committer
Yann Dirson
<ydirson@free.fr>
Sat, 22 Feb 2014 09:46:23 +0000 (10:46 +0100)
gnushogi/commondsp.c
patch
|
blob
|
history
diff --git
a/gnushogi/commondsp.c
b/gnushogi/commondsp.c
index
14fd387
..
bcd84e1
100644
(file)
--- 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)
{