Skip to content


epub: allow to save epub documents
Browse files Browse the repository at this point in the history
  • Loading branch information
raveit65 committed Mar 16, 2018
1 parent ea3dfb1 commit 1f6278d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/epub/epub-document.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1f6278d

Please sign in to comment.