Using a debug build of 3.2.9, I get an assertion in wxFileDialog when calling wxFileSelector with wxFD_SAVE and only one filter is supplied. This does not happen in 3.2.8 and appears to have originated in PR #25854 commit 9317d44.
The file save dialog should appear instead of the assertion message.
This patch to the dialogs sample will cause the error in the "File Operations->Second File Open" test (cmd-2)
diff --git a/samples/dialogs/dialogs.cpp b/samples/dialogs/dialogs.cpp
index 99eddcaa24..da686d4977 100644
--- a/samples/dialogs/dialogs.cpp
+++ b/samples/dialogs/dialogs.cpp
@@ -1903,13 +1903,8 @@ void MyFrame::FileOpen2(wxCommandEvent& WXUNUSED(event) )
"Test save error",
wxEmptyString, wxEmptyString,
s_extDef,
- wxString::Format
- (
- "Waveform (*.wav)|*.wav|Plain text (*.txt)|*.txt|All files (%s)|%s",
- wxFileSelectorDefaultWildcardStr,
- wxFileSelectorDefaultWildcardStr
- ),
- wxFD_OPEN|wxFD_CHANGE_DIR|wxFD_PREVIEW|wxFD_NO_FOLLOW|wxFD_SHOW_HIDDEN,
+ "Waveform (*.wav)|*.wav",
+ wxFD_SAVE|wxFD_OVERWRITE_PROMPT,
this
);
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()