Skip to content

Commit 27f459a

Browse files
author
raveit65
committed
epub: allow to save epub documents
inspired by: linuxmint/xreader@63a28f linuxmint/xreader#165
1 parent bd799f4 commit 27f459a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

backend/epub/epub-document.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,11 @@ epub_document_save (EvDocument *document,
352352
{
353353
EpubDocument *epub_document = EPUB_DOCUMENT (document);
354354

355-
return ev_xfer_uri_simple (epub_document->archivename, uri, error);
355+
gchar *source_uri = g_filename_to_uri (epub_document->archivename, NULL, error);
356+
if (source_uri == NULL)
357+
return FALSE;
358+
359+
return ev_xfer_uri_simple (source_uri, uri, error);
356360
}
357361

358362
static int

0 commit comments

Comments
 (0)