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:
commit
904d5c1621
|
@ -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…
Reference in New Issue
Block a user