Fix previewing embedded files on Windows

BUGS: 448735
This commit is contained in:
Albert Astals Cid 2022-01-19 16:01:34 +01:00
parent 44c86de7e4
commit 6795ae7f2c

View file

@ -178,7 +178,7 @@ void EmbeddedFilesDialog::viewFile(Okular::EmbeddedFile *ef)
m_openedFiles.push_back(QSharedPointer<QTemporaryFile>(tmpFile));
// view the temporary file with the default application
new KRun(QUrl("file://" + tmpFile->fileName()), this);
new KRun(QUrl::fromLocalFile(tmpFile->fileName()), this);
}
void EmbeddedFilesDialog::saveFile(Okular::EmbeddedFile *ef)