Improve wxFileCtrl::SetFilename() and SetPath() consistency.

Don't allow specifying the directory in the former and do check for the
directory existence in the latter.

Also update the file shown in the dialog in SetFilename().

Closes #16685.
This commit is contained in:
Kevin B. McCarty
2015-05-09 19:05:05 +02:00
committed by Vadim Zeitlin
parent 9a44b109bf
commit 178e9c9335
3 changed files with 26 additions and 15 deletions

View File

@@ -180,9 +180,9 @@ public:
/**
Changes to a certain directory and selects a certain file.
In case the filename specified isn't found/couldn't be shown with
currently selected filter, false is returned.
If @a path includes the directory part, it must exist, otherwise @false
is returned and nothing else is done.
@return Returns @true on success, @false otherwise
*/