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

Merge pull request #3569

bitok (1):
      fix(widget):change received files execution method
This commit is contained in:
sudden6 2016-08-01 21:57:28 +02:00
commit 904d5c1621
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

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)