X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=dialogs.c;h=43f762ec54dcff29dfa4527b0c3d2b8820882738;hb=78380102f6e5d4bbe6bacb0df21aa6afec8ff903;hp=039232ddc89eac1faf74585e01f71e440ca202b5;hpb=aedcb1a2e157f3cc39809c0c48a107f3df6c84db;p=xboard.git diff --git a/dialogs.c b/dialogs.c index 039232d..43f762e 100644 --- a/dialogs.c +++ b/dialogs.c @@ -1223,7 +1223,7 @@ NewMove () addToBookFlag = !addToBookFlag; } -static Option tagsOptions[] = { +Option tagsOptions[] = { { 0, 0, 0, NULL, NULL, NULL, NULL, Label, NULL }, { 200, T_VSCRL | T_FILL | T_WRAP | T_TOP, 200, NULL, (void*) &tagsText, NULL, (char **) &TagsClick, TextBox, "", &appData.tagsFont }, { 0, 0, 100, NULL, (void*) &NewMove, NULL, NULL, Button, N_("add next move") }, @@ -1638,7 +1638,6 @@ NewFont (int n, int fnr, char *font) static int FontsOK (int n) { - extern Option historyOptions[], engoutOptions[], gamesOptions[], chatOptions[]; int i; PopDown(TransientDlg); // Early popdown to prevent expose events frommasking each other LockBoardSize(0); @@ -3330,7 +3329,9 @@ StartDir (char *filter, char *newName) ASSIGN(*res, newName); for(p=*res; q=strchr(p, '/');) p = q + 1; *p = NULLCHAR; } - if(*curDir) chdir(curDir); + } + if(*curDir) { + chdir(curDir); *curDir = NULLCHAR; } else { getcwd(curDir, MSG_SIZ);