From 4e5cbcdb653428ad21181c89862c9e946e8a5539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Tue, 28 Dec 2021 15:50:30 +0000 Subject: [PATCH] Enable permissions choice for other filesystems. --- src/gui/newdialog.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/gui/newdialog.cpp b/src/gui/newdialog.cpp index cd0711f..e758c35 100644 --- a/src/gui/newdialog.cpp +++ b/src/gui/newdialog.cpp @@ -118,9 +118,20 @@ void NewDialog::setupDialog() connect(&dialogWidget().comboFileSystem(), QOverload::of(&QComboBox::currentIndexChanged), this, [this]{ const QString currText = dialogWidget().comboFileSystem().currentText(); const bool enablePosixPermission = QList({ + QStringLiteral("btrfs"), QStringLiteral("ext2"), QStringLiteral("ext3"), - QStringLiteral("ext4")} + QStringLiteral("ext4"), + QStringLiteral("f2fs"), + QStringLiteral("hfsplus"), + QStringLiteral("jfs"), + QStringLiteral("minix"), + QStringLiteral("ocfs2"), + QStringLiteral("reiserfs"), + QStringLiteral("reiser4"), + QStringLiteral("udf"), + QStringLiteral("xfs"), + QStringLiteral("zfs"),} ).contains(currText); if (enablePosixPermission) { dialogWidget().showPosixPermissions();