From fe302a5d1b8ba2b8c398f22c28bdd67357c6f339 Mon Sep 17 00:00:00 2001 From: Abdo Date: Mon, 4 Jul 2022 02:33:20 +0300 Subject: [PATCH] Use portable filter to match all files in getFile (#1943) `*.*` matches files with no extensions on Windows, while it doesn't do so on macOS. Reference: https://doc.qt.io/qt-6/qfiledialog.html#setNameFilters --- qt/aqt/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/utils.py b/qt/aqt/utils.py index 3c4ed09b3..5acef4687 100644 --- a/qt/aqt/utils.py +++ b/qt/aqt/utils.py @@ -430,7 +430,7 @@ def getFile( title: str, # single file returned unless multi=True cb: Callable[[str | Sequence[str]], None] | None, - filter: str = "*.*", + filter: str = "*", dir: str | None = None, key: str | None = None, multi: bool = False, # controls whether a single or multiple files is returned