[commdlg] Fix file dialog bug introduced by ChangeSet 17928 and fix the problem correctly

Troy Rollo wine at troy.rollo.name
Wed Aug 10 02:03:51 CDT 2005


This patch reverses the change made by change set 17928 
<http://cvs.winehq.org/patch.py?id=17928> and inserts a correct fix.

Under windows if you type in the name of a directory these dialogs do browse 
to that directory (this was broken by 17928).

If OFN_NOVALIDATE is set and OFN_FILEMUSTEXIST is not set, then whenever the 
"Open" button is clicked and there is any text in the file name edit box, the 
result should be to return the file name formed by taking the contents of the 
edit box, qualified by the current folder (if the file name in the edit box 
is not fully qualified). Fixing this makes the Notes "Save All" feature for 
attachments work correctly.

ChangeLog:
	Reverse change set 17928 - the correct behaviour in Windows is to
	browse to the directory if a directory name is typed into the edit box
	of a file dialog and the confirmation button (or Enter key) is hit.

        Return any file name in the edit box if OFN_NOVALIDATE is set and
	OFN_FILEMUSTEXIST is not, even if that file name includes a
	path name or is the name of a folder.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: filedlg.diffs
Type: text/x-diff
Size: 6954 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050810/9102f470/filedlg.bin


More information about the wine-patches mailing list