Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
Okular
Commits
6795ae7f
Commit
6795ae7f
authored
Jan 19, 2022
by
Albert Astals Cid
Browse files
Fix previewing embedded files on Windows
BUGS: 448735
parent
44c86de7
Pipeline
#125693
passed with stage
in 28 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
part/embeddedfilesdialog.cpp
View file @
6795ae7f
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment