Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(widget):change received files execution method
Browse files Browse the repository at this point in the history
Remove incorrect file execute method, it replaced by associations-aware method. Fixes #3140.
  • Loading branch information
BiTOk committed Jul 30, 2016
1 parent a556762 commit def2e88
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/widget/widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit def2e88

Please sign in to comment.