diff --git a/src/Archive/Archive.cpp b/src/Archive/Archive.cpp index c78cd5b0a..98fea8231 100644 --- a/src/Archive/Archive.cpp +++ b/src/Archive/Archive.cpp @@ -433,7 +433,7 @@ string Archive::fileExtensionString() const } // No extension (probably unknown type) - return "Any File|*.*"; + return "Any File|*"; } // ----------------------------------------------------------------------------- diff --git a/src/MainEditor/EntryOperations.cpp b/src/MainEditor/EntryOperations.cpp index d5fbbedd1..0c7d32ba0 100644 --- a/src/MainEditor/EntryOperations.cpp +++ b/src/MainEditor/EntryOperations.cpp @@ -218,7 +218,7 @@ bool entryoperations::exportEntry(ArchiveEntry* entry) if (filedialog::saveFile( info, "Export Entry \"" + entry->name() + "\"", - "Any File (*.*)|*.*", + "Any File (*.*)|*", maineditor::windowWx(), fn.GetFullName().ToStdString())) entry->exportFile(info.filenames[0]); // Export entry if ok was clicked @@ -234,7 +234,7 @@ bool entryoperations::exportEntries(const vector& entries, const // Run save files dialog filedialog::FDInfo info; if (filedialog::saveFiles( - info, "Export Multiple Entries (Filename is ignored)", "Any File (*.*)|*.*", maineditor::windowWx())) + info, "Export Multiple Entries (Filename is ignored)", "Any File (*.*)|*", maineditor::windowWx())) { // Go through the selected entries for (auto& entry : entries) diff --git a/src/MainEditor/UI/ArchiveManagerPanel.cpp b/src/MainEditor/UI/ArchiveManagerPanel.cpp index be7c75a06..a31b89b2c 100644 --- a/src/MainEditor/UI/ArchiveManagerPanel.cpp +++ b/src/MainEditor/UI/ArchiveManagerPanel.cpp @@ -1817,7 +1817,7 @@ bool ArchiveManagerPanel::handleAction(string_view id) { // Create extensions string wxString extensions = app::archiveManager().getArchiveExtensionsString(); - extensions += "|All Files (*.*)|*.*"; + extensions += "|All Files (*.*)|*"; // Open a file browser dialog that allows multiple selection // and filters by wad, zip and pk3 file extensions diff --git a/src/MainEditor/UI/ArchivePanel.cpp b/src/MainEditor/UI/ArchivePanel.cpp index d36264236..2ebf817c7 100644 --- a/src/MainEditor/UI/ArchivePanel.cpp +++ b/src/MainEditor/UI/ArchivePanel.cpp @@ -948,7 +948,7 @@ bool ArchivePanel::importFiles() // Run open files dialog filedialog::FDInfo info; - if (filedialog::openFiles(info, "Choose files to import", "Any File (*.*)|*.*", this)) + if (filedialog::openFiles(info, "Choose files to import", "Any File (*.*)|*", this)) { // Get the entry index of the last selected list item auto dir = entry_tree_->currentSelectedDir(); @@ -1753,7 +1753,7 @@ bool ArchivePanel::importEntry() { // Run open file dialog filedialog::FDInfo info; - if (filedialog::openFile(info, "Import Entry \"" + entry->name() + "\"", "Any File (*.*)|*.*", this)) + if (filedialog::openFile(info, "Import Entry \"" + entry->name() + "\"", "Any File (*.*)|*", this)) { // Preserve gfx offset if needed Vec2i offset; diff --git a/src/MainEditor/UI/TextureXEditor/PatchTablePanel.cpp b/src/MainEditor/UI/TextureXEditor/PatchTablePanel.cpp index 77a62ce10..8ea9a670c 100644 --- a/src/MainEditor/UI/TextureXEditor/PatchTablePanel.cpp +++ b/src/MainEditor/UI/TextureXEditor/PatchTablePanel.cpp @@ -387,7 +387,7 @@ void PatchTablePanel::addPatchFromFile() auto etypes = EntryType::allTypes(); // Go through types - wxString ext_filter = "All files (*.*)|*.*|"; + wxString ext_filter = "All files (*.*)|*|"; for (auto& etype : etypes) { // If the type is a valid image type, add its extension filter diff --git a/src/MainEditor/UI/TextureXEditor/TextureXPanel.cpp b/src/MainEditor/UI/TextureXEditor/TextureXPanel.cpp index 38329bb07..ddb58a573 100644 --- a/src/MainEditor/UI/TextureXEditor/TextureXPanel.cpp +++ b/src/MainEditor/UI/TextureXEditor/TextureXPanel.cpp @@ -965,7 +965,7 @@ void TextureXPanel::newTextureFromFile() auto etypes = EntryType::allTypes(); // Go through types - wxString ext_filter = "All files (*.*)|*.*|"; + wxString ext_filter = "All files (*.*)|*|"; for (auto& etype : etypes) { // If the type is a valid image type, add its extension filter diff --git a/src/UI/Controls/FileLocationPanel.h b/src/UI/Controls/FileLocationPanel.h index 3e81c2d2e..4fabfc98a 100644 --- a/src/UI/Controls/FileLocationPanel.h +++ b/src/UI/Controls/FileLocationPanel.h @@ -14,7 +14,7 @@ class FileLocationPanel : public wxPanel const wxString& path, bool editable = true, const wxString& browse_caption = "Browse File", - const wxString& browse_extensions = "All Files|*.*", + const wxString& browse_extensions = "All Files|*", const wxString& browse_default_filename = ""); wxString location() const; diff --git a/src/UI/Dialogs/Preferences/NodesPrefsPanel.cpp b/src/UI/Dialogs/Preferences/NodesPrefsPanel.cpp index 170f14782..c34dc3717 100644 --- a/src/UI/Dialogs/Preferences/NodesPrefsPanel.cpp +++ b/src/UI/Dialogs/Preferences/NodesPrefsPanel.cpp @@ -183,9 +183,9 @@ void NodesPrefsPanel::onBtnBrowse(wxCommandEvent& e) // Setup extension #ifdef __WXMSW__ - auto ext = fmt::format("{}.exe|{}.exe|All Files (*.*)|*.*", builder.exe, builder.exe); + auto ext = fmt::format("{}.exe|{}.exe|All Files (*.*)|*", builder.exe, builder.exe); #else - auto ext = fmt::format("{}|{}|All Files (*.*)|*.*", builder.exe, builder.exe); + auto ext = fmt::format("{}|{}|All Files (*.*)|*", builder.exe, builder.exe); #endif // Browse for exe diff --git a/src/Utility/SFileDialog.cpp b/src/Utility/SFileDialog.cpp index 47537f1e4..5b19a5cfd 100644 --- a/src/Utility/SFileDialog.cpp +++ b/src/Utility/SFileDialog.cpp @@ -379,7 +379,7 @@ string filedialog::executableExtensionString() if (app::platform() == app::Platform::Windows) return "Executable Files (*.exe)|*.exe"; else - return "Executable Files|*.*"; + return "Executable Files|*"; } // -----------------------------------------------------------------------------