[wx-dev] #9520: Fix to allow repeated use of wxFileDialog object
wxTrac
noreply at wxsite.net
Mon Jun 2 06:12:30 PDT 2008
Ticket URL: <http://trac.wxwidgets.org/ticket/9520>
#9520: Fix to allow repeated use of wxFileDialog object
--------------------------+-------------------------------------------------
Reporter: doornik | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: wxMac | Version: 2.8.x
Keywords: wxFileDialog | Blockedby:
Patch: 1 | Blocking:
--------------------------+-------------------------------------------------
Consider the following stylized code using wxMAC:
wxFileDialog dlg;
dlg.ShowModal();
dlg.GetFileName();
dlg.ShowModal();
dlg.GetFileName();
The second call will return the file name of the first. The reason is that
file names are added to an array, but the data is not reset when ShowModal
is called, only when the dialog is created.
The patch adds the missing two lines of code.
--
Ticket URL: <http://trac.wxwidgets.org/ticket/9520>
More information about the wx-dev
mailing list