From 7ed8489e53bdf0af9f4353341e7bd7283b83b3b3 Mon Sep 17 00:00:00 2001 From: hewenfei Date: Wed, 24 Apr 2024 17:59:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(menu):=20=E4=BF=AE=E5=A4=8D=E6=9D=83?= =?UTF-8?q?=E9=99=90=E8=AE=BE=E7=BD=AE=E9=80=BB=E8=BE=91=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/extension/menu/app-menu-plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension/menu/app-menu-plugin.cpp b/src/extension/menu/app-menu-plugin.cpp index c37a1c4..3401e53 100644 --- a/src/extension/menu/app-menu-plugin.cpp +++ b/src/extension/menu/app-menu-plugin.cpp @@ -155,7 +155,7 @@ void AppContentMenu::addToDesktopAction(QObject *parent, const QString &appId, Q QFile::ReadOther | QFile::ExeOther }; - if (QFile::setPermissions(path, permissions)) { + if (!QFile::setPermissions(path, permissions)) { qWarning() << "set file permissions failed, file:" << path; } }