Applied patch [ 649590 ] fixes bug 611264: wxFileDialog entry
authorJulian Smart <julian@anthemion.co.uk>
Mon, 9 Dec 2002 10:44:13 +0000 (10:44 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 9 Dec 2002 10:44:13 +0000 (10:44 +0000)
commitdf4131711384a17b827ab4b964dbabc6af2aa5da
tree82a2a74ed8b6e8be6325b9e00a3428d3caae510d
parent84cff9658571992925bfb02b916fb17285ba257f
Applied patch [ 649590 ] fixes bug 611264: wxFileDialog entry

In bug 611264 I reported that typing a filename into a
multiple selection file dialog failed. The file
returned was "..".

I discovered that this was because the previous
directory folder came up automatically selected when
the dialog was created. Then, I discovered a related
bug. If any file or folder was selected, then that was
the file which was returned regardless of what was
typed in.

To fix the problem I added an EVT_TEXT handler which
deselects everything that is selected when the user
types. The handler does not deselect anything unless
the user actually types something.

This patch implements the fix.

John Skiff

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/generic/filedlgg.h
src/generic/filedlgg.cpp