Rename wxWebRequestEvent::GetResponseFileName() to GetDataFile()
This is shorter and doesn't imply that just the name (and not the full path) is being returned. Also rename wxWebResponse::GetFileName() to GetDataFile() for the same reasons and for consistency. And document this previously undocumented method.
This commit is contained in:
@@ -288,7 +288,7 @@ public:
|
||||
wxFD_SAVE | wxFD_OVERWRITE_PROMPT);
|
||||
if ( fileDlg.ShowModal() == wxID_OK )
|
||||
{
|
||||
if ( !wxRenameFile(evt.GetResponseFileName(), fileDlg.GetPath()) )
|
||||
if ( !wxRenameFile(evt.GetDataFile(), fileDlg.GetPath()) )
|
||||
wxLogError("Could not move file");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user