1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(widget):change received files execution method

Remove incorrect file execute method, it replaced by associations-aware method. Fixes #3140.
This commit is contained in:
bitok 2016-07-31 00:30:13 +03:00
parent a556762c54
commit def2e880c9

View 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)