Commit 5bd7e9b8 authored by Méven Car's avatar Méven Car

ExportManager: Marked saved files as recent files

Using KRecentDocument

BUG: 424205
FIXED-IN: 20.08.3
parent f078d563
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment