diff options
author | wolfsuit <wolfsuit> | 2001-10-24 06:00:04 (GMT) |
---|---|---|
committer | wolfsuit <wolfsuit> | 2001-10-24 06:00:04 (GMT) |
commit | b91aa7c18939b08a63e3db0ae724733518810b1e (patch) | |
tree | 95087da62244ec6ab1a0b57fa470e3b7c1d419b9 | |
parent | 595902e6d423c76d204718da689c318fe1283888 (diff) | |
download | tk-b91aa7c18939b08a63e3db0ae724733518810b1e.zip tk-b91aa7c18939b08a63e3db0ae724733518810b1e.tar.gz tk-b91aa7c18939b08a63e3db0ae724733518810b1e.tar.bz2 |
10/23/2001 Jim Ingham <jingham@apple.com>
Dopey little bug in the dialog for tk_chooseDirectory. There is no file filter for the directory dialog...
-rw-r--r-- | macosx/tkMacOSXDialog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/tkMacOSXDialog.c b/macosx/tkMacOSXDialog.c index 3aca5c4..3d359eb 100644 --- a/macosx/tkMacOSXDialog.c +++ b/macosx/tkMacOSXDialog.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacOSXDialog.c,v 1.1.2.1 2001/10/15 09:22:00 wolfsuit Exp $ + * RCS: @(#) $Id: tkMacOSXDialog.c,v 1.1.2.2 2001/10/24 06:00:04 wolfsuit Exp $ */ #include <Carbon/Carbon.h> @@ -923,7 +923,7 @@ OpenFileFilterProc( NavFilterModes filterMode ) { OpenFileData *ofdPtr = (OpenFileData *) callBackUD; - if (!ofdPtr->usePopup) { + if (!ofdPtr || !ofdPtr->usePopup) { return true; } else { if (ofdPtr->fl.numFilters == 0) { |