summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-03-09 19:10:02 +0100
committerraveit65 <[email protected]>2018-03-16 17:51:25 +0100
commit1f6278d8158b56707b412281d46e1ec06fe1a4fc (patch)
treebcef203e558d9b8d12dbd25612d11869d00d6830 /backend
parentea3dfb136d28635f874a5a2e3955da7f6e80d8d8 (diff)
downloadatril-1f6278d8158b56707b412281d46e1ec06fe1a4fc.tar.bz2
atril-1f6278d8158b56707b412281d46e1ec06fe1a4fc.tar.xz
epub: allow to save epub documents
inspired by: https://github.com/linuxmint/xreader/commit/63a28f https://github.com/linuxmint/xreader/issues/165
Diffstat (limited to 'backend')
-rw-r--r--backend/epub/epub-document.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/backend/epub/epub-document.c b/backend/epub/epub-document.c
index fe483a68..c0fa275b 100644
--- a/backend/epub/epub-document.c
+++ b/backend/epub/epub-document.c
@@ -352,7 +352,11 @@ epub_document_save (EvDocument *document,
{
EpubDocument *epub_document = EPUB_DOCUMENT (document);
- return ev_xfer_uri_simple (epub_document->archivename, uri, error);
+ gchar *source_uri = g_filename_to_uri (epub_document->archivename, NULL, error);
+ if (source_uri == NULL)
+ return FALSE;
+
+ return ev_xfer_uri_simple (source_uri, uri, error);
}
static int