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:
committed by
Vadim Zeitlin
parent
284cf9a872
commit
4ac648901d
@@ -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
|
||||
-----------------------------------------------------
|
||||
|
Reference in New Issue
Block a user