From d1b276c900d5acf680fbdebc4b368f68a1c94ca2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A6=83=E6=9C=AC=E5=AD=A6?= Date: Mon, 26 Aug 2024 09:32:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E6=96=87=E4=BB=B6=E5=AF=B9=E8=AF=9D=E6=A1=86?= =?UTF-8?q?=E6=97=B6=E6=97=A0=E6=B3=95=E9=80=89=E6=8B=A9=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit directory字段未更新, 判断成选择文件 Log: Task: https://pms.uniontech.com/task-view-360597.html Influence: 拉起的选择文件对话框 --- src/filechooser.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/filechooser.cpp b/src/filechooser.cpp index 4868a46..ed30cab 100644 --- a/src/filechooser.cpp +++ b/src/filechooser.cpp @@ -159,6 +159,10 @@ uint FileChooserPortal::OpenFile(const QDBusObjectPath &handle, parseFilters(options, nameFilters, mimeTypeFilters, allFilters, selectedMimeTypeFilter); // open directory + if (options.contains(QStringLiteral("directory"))) { + directory = options.value("directory").toBool(); + } + if (directory && !options.contains(QStringLiteral("choices"))) { QFileDialog dirDialog; dirDialog.setWindowTitle(title);