Merge branch 'release/v8.0.0' of https://github.com/ONLYOFFICE/desktop-apps into release/v8.0.0

This commit is contained in:
maxkadushkin
2023-12-14 17:39:44 +03:00

View File

@ -339,8 +339,7 @@ void CDownloadWidget::downloadProcess(void * info)
connect(open, &QPushButton::clicked, this, [=]() {
hide();
if (CCefViewEditor::GetFileFormat(path.toStdWString()) == 0) {
if (!QDesktopServices::openUrl(QUrl::fromLocalFile(path)))
CMessage::error(parentWidget(), tr("Can't open file: ") + path);
Utils::openUrl(QUrl::fromLocalFile(path).toString());
} else {
AscAppManager::handleInputCmd({path.toStdWString()});
#ifdef _WIN32