diff options
author | hobbs <hobbs@noemail.net> | 2009-04-24 17:30:33 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2009-04-24 17:30:33 (GMT) |
commit | fe40536ba8a282ba78defd7f4e110565d30e4bd2 (patch) | |
tree | dbf03d90077c50affd6388db33ac030b380ca597 /win/tkWinDialog.c | |
parent | 68598d376ea0727fec69c1c210af4747390a2d4a (diff) | |
download | tk-fe40536ba8a282ba78defd7f4e110565d30e4bd2.zip tk-fe40536ba8a282ba78defd7f4e110565d30e4bd2.tar.gz tk-fe40536ba8a282ba78defd7f4e110565d30e4bd2.tar.bz2 |
* win/tkWinDialog.c (ChooseDirectoryValidateProc): no need to set
cwd on selchange. Prevents delete of selected folder in dialog.
FossilOrigin-Name: 964fe09606cf4679c7399d327e8fe624aba0b54e
Diffstat (limited to 'win/tkWinDialog.c')
-rw-r--r-- | win/tkWinDialog.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/win/tkWinDialog.c b/win/tkWinDialog.c index 0ac03bd..5cd1a4d 100644 --- a/win/tkWinDialog.c +++ b/win/tkWinDialog.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinDialog.c,v 1.50.2.2 2009/04/23 21:57:11 hobbs Exp $ + * RCS: @(#) $Id: tkWinDialog.c,v 1.50.2.3 2009/04/24 17:30:33 hobbs Exp $ * */ @@ -1969,7 +1969,7 @@ ChooseDirectoryValidateProc( case BFFM_SELCHANGED: /* - * Set the status window to the currently selected path. And enable + * Set the status window to the currently selected path and enable * the OK button if a file system folder, otherwise disable the OK * button for things like server names. Perhaps a new switch * -enablenonfolders can be used to allow non folders to be selected. @@ -1981,7 +1981,6 @@ ChooseDirectoryValidateProc( SendMessage(hwnd, BFFM_SETSTATUSTEXT, 0, (LPARAM) selDir); // enable the OK button SendMessage(hwnd, BFFM_ENABLEOK, 0, (LPARAM) 1); - SetCurrentDirectory(selDir); } else { // disable the OK button SendMessage(hwnd, BFFM_ENABLEOK, 0, (LPARAM) 0); |