Make setting trust possible anytime
authorAlf Gaida <agaida@siduction.org>
Tue, 29 Jan 2019 17:20:07 +0000 (18:20 +0100)
committerAlf Gaida <agaida@siduction.org>
Tue, 5 Feb 2019 19:11:09 +0000 (19:11 +0000)
If a file is executable the option should be available in the context menu.
The part
&& (!fileLauncher_ || !fileLauncher_->quickExec()) is superfluous in that case.

fixes lxqt/libfm-qt/issues/354

Gbp-Pq: Name fix-trust.patch

src/filemenu.cpp

index 918c31f7ca9cda8069fdaa17fa4f73a2bb4555f8..61ab629f2a572d9b7ea13392d4d50b5d3a5257d6 100644 (file)
@@ -247,7 +247,7 @@ FileMenu::~FileMenu() {
 }
 
 void FileMenu::addTrustAction() {
-    if(info_->isExecutableType() && (!fileLauncher_ || !fileLauncher_->quickExec())) {
+    if(info_->isExecutableType()) {
         QAction* trustAction = new QAction(files_.size() > 1
                                              ? tr("Trust selected executables")
                                              : tr("Trust this executable"),