From 6170d2bb0a657d7ad0bccbf83f82123f634ae4e4 Mon Sep 17 00:00:00 2001 From: rik Date: Mon, 24 Jun 2024 19:17:35 +0100 Subject: [PATCH] Allow selecting non-existing files in FileDialog --- PyFlow/UI/Widgets/FileDialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyFlow/UI/Widgets/FileDialog.py b/PyFlow/UI/Widgets/FileDialog.py index b1806b2d..96f4d9bb 100644 --- a/PyFlow/UI/Widgets/FileDialog.py +++ b/PyFlow/UI/Widgets/FileDialog.py @@ -15,7 +15,7 @@ def __init__(self, mode="all", multifile=False, parent=None, **kwargs): but.clicked.connect(self.chooseClicked) elif mode == "file": - self.setFileMode(QFileDialog.ExistingFile) + self.setFileMode(QFileDialog.AnyFile) elif mode == "directory": self.setFileMode(QFileDialog.DirectoryOnly)