Browse Source

fix(widget):change received files execution method

Remove incorrect file execute method, it replaced by associations-aware method. Fixes #3140.
reviewable/pr3569/r1
bitok 9 years ago
parent
commit
def2e880c9
  1. 7
      src/widget/widget.cpp

7
src/widget/widget.cpp

@ -811,12 +811,9 @@ void Widget::confirmExecutableOpen(const QFileInfo &file) @@ -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)

Loading…
Cancel
Save