From def2e880c9a4190b697bc97edd6d775b15ea1978 Mon Sep 17 00:00:00 2001 From: bitok Date: Sun, 31 Jul 2016 00:30:13 +0300 Subject: [PATCH] fix(widget):change received files execution method Remove incorrect file execute method, it replaced by associations-aware method. Fixes #3140. --- src/widget/widget.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index 9d97a6f8b..dfe8a328f 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -811,12 +811,9 @@ void Widget::confirmExecutableOpen(const QFileInfo &file) // The user wants to run this file, so make it executable and run it QFile(file.filePath()).setPermissions(file.permissions() | QFile::ExeOwner | QFile::ExeUser | QFile::ExeGroup | QFile::ExeOther); - QProcess::startDetached(file.filePath()); - } - else - { - QDesktopServices::openUrl(QUrl::fromLocalFile(file.filePath())); } + + QDesktopServices::openUrl(QUrl::fromLocalFile(file.filePath())); } void Widget::onIconClick(QSystemTrayIcon::ActivationReason reason)