Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Graphics
Spectacle
Commits
5bd7e9b8
Commit
5bd7e9b8
authored
Oct 24, 2020
by
Méven Car
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ExportManager: Marked saved files as recent files
Using KRecentDocument BUG: 424205 FIXED-IN: 20.08.3
parent
f078d563
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
src/ExportManager.cpp
src/ExportManager.cpp
+9
-2
No files found.
src/ExportManager.cpp
View file @
5bd7e9b8
...
...
@@ -45,6 +45,7 @@
#include <KIO/MkpathJob>
#include <KIO/FileCopyJob>
#include <KIO/StatJob>
#include <KRecentDocument>
...
...
@@ -429,10 +430,16 @@ bool ExportManager::save(const QUrl &url)
}
QString
mimetype
=
makeSaveMimetype
(
url
);
bool
saveSucceded
=
false
;
if
(
url
.
isLocalFile
())
{
return
localSave
(
url
,
mimetype
);
saveSucceded
=
localSave
(
url
,
mimetype
);
}
else
{
saveSucceded
=
remoteSave
(
url
,
mimetype
);
}
if
(
saveSucceded
)
{
KRecentDocument
::
add
(
url
,
QGuiApplication
::
desktopFileName
());
}
return
remoteSave
(
url
,
mimetype
)
;
return
saveSucceded
;
}
bool
ExportManager
::
isFileExists
(
const
QUrl
&
url
)
const
...
...
Write
Preview
Markdown
is supported
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