Skip to content

Commit

Permalink
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 bd799f4 commit 27f459a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/epub/epub-document.c
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 27f459a

Please sign in to comment.