From 13b529e77a805c47fbb4401b22979232b42609d1 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 23 Jul 2018 13:57:17 +1000 Subject: [PATCH] save file selector state --- aqt/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aqt/utils.py b/aqt/utils.py index aa4c0a121..5c6ac0941 100644 --- a/aqt/utils.py +++ b/aqt/utils.py @@ -272,7 +272,11 @@ def getFile(parent, title, cb, filter="*.*", dir=None, key=None): cb(file) ret.append(file) d.accepted.connect(accept) + if key: + restoreState(d, key) d.exec_() + if key: + saveState(d, key) return ret and ret[0] def getSaveFile(parent, title, dir_description, key, ext, fname=None):