Don't allow using GetPath/GetFilename() with wxFD_MULTIPLE

GetPaths/GetFilenames() must be used instead when more than one file
could be selected: document this and assert if the wrong functions are
called.

Closes https://github.com/wxWidgets/wxWidgets/pull/1883
This commit is contained in:
Ian McInerney
2020-06-02 10:34:37 +01:00
committed by Vadim Zeitlin
parent 284cf9a872
commit 4ac648901d
6 changed files with 35 additions and 4 deletions

View File

@@ -99,6 +99,9 @@ Changes in behaviour not resulting in compilation errors
- wxSizer::RecalcSizes() shouldn't be called directly (note that it was never
supposed to be called, only implemented), call Layout() instead.
- wxFileDialog::GetPath() and wxFileDialog::GetFilename() now assert and return
an empty string if called on dialogs with the wxFD_MULTIPLE style.
Changes in behaviour which may result in build errors
-----------------------------------------------------