Add m_fsStyle next to m_windowStyle
Add HasFdFlag() Use it for all tests in all variants of wxFileDialogs. That way it will be easier to change again centrally, if required. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -404,7 +404,7 @@ void wxFileDialog::SetFilename(const wxString& name)
|
||||
{
|
||||
if (!gtk_check_version(2,4,0))
|
||||
{
|
||||
if (HasFlag(wxFD_SAVE))
|
||||
if (HasFdFlag(wxFD_SAVE))
|
||||
gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(m_widget), wxGTK_CONV(name));
|
||||
else
|
||||
SetPath(wxFileName(GetDirectory(), name).GetFullPath());
|
||||
|
Reference in New Issue
Block a user