Simplify and correct setting of initial directory for wxFilePickerCtrl.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 9 Sep 2012 13:34:49 +0000 (13:34 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 9 Sep 2012 13:34:49 +0000 (13:34 +0000)
commit06a419244f6c8b84ddccd2f49c9af942fe1602f0
treea0ba5b9c2bc1ed3d767a87240044f9fdf6c28a8d
parentd965bcda31851460b34d491706e1d6b589eb1dd1
Simplify and correct setting of initial directory for wxFilePickerCtrl.

Create wxFileDialog with correct initial directory and default file name from
the very beginning instead of updating it later. This makes the code simpler
and also actually makes it work as the initial directory setting was
overwritten by setting the default path later even if it didn't contain any
directory component.

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