Merge pull request #1081 from ONLYOFFICE/patch/release/v8.0.0_r3

Fix bug 65493
This commit is contained in:
Maxim Kadushkin
2023-12-14 14:04:35 +03:00
committed by GitHub

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