summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2009-04-24 17:29:46 (GMT)
committerhobbs <hobbs>2009-04-24 17:29:46 (GMT)
commit081d2bce407cb354a038ccc08789187f34d2e50c (patch)
treeac56e0e4f17e22f19f1c019f70a818c79a2a604a
parentb303eed0674328ef36db5cbbbf0015a77fd1a1ef (diff)
downloadtk-081d2bce407cb354a038ccc08789187f34d2e50c.zip
tk-081d2bce407cb354a038ccc08789187f34d2e50c.tar.gz
tk-081d2bce407cb354a038ccc08789187f34d2e50c.tar.bz2
* win/tkWinDialog.c (ChooseDirectoryValidateProc): no need to set
cwd on selchange. Prevents delete of selected folder in dialog.
-rw-r--r--ChangeLog5
-rw-r--r--win/tkWinDialog.c5
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 20c70b0..4026532 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-04-24 Jeff Hobbs <jeffh@ActiveState.com>
+
+ * win/tkWinDialog.c (ChooseDirectoryValidateProc): no need to set
+ cwd on selchange. Prevents delete of selected folder in dialog.
+
2009-04-24 Stuart Cassoff <stwo@users.sf.net>
* unix/Makefile.in: Removed stray @ from Makefile.in test target.
diff --git a/win/tkWinDialog.c b/win/tkWinDialog.c
index f8ffe13..59bf138 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.62 2009/04/23 22:01:29 hobbs Exp $
+ * RCS: @(#) $Id: tkWinDialog.c,v 1.63 2009/04/24 17:29:47 hobbs Exp $
*
*/
@@ -1975,7 +1975,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.
@@ -1987,7 +1987,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);