X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=backend%2Fev-document-factory.c;h=e3f384f9b864a0b121289e672a0cf3b9e87ccfc1;hb=5379b134607e3a198257d7b379ca804944f4e838;hp=d31506db8b4fb64056c3be9b7184edcbe9bf447c;hpb=1ad8b6b9bd67fa4d6ea23885ab2bef25f12316c6;p=evince.git diff --git a/backend/ev-document-factory.c b/backend/ev-document-factory.c index d31506db..e3f384f9 100644 --- a/backend/ev-document-factory.c +++ b/backend/ev-document-factory.c @@ -259,14 +259,14 @@ get_document_from_uri (const char *uri, gboolean slow, GError **error) gnome_vfs_file_info_unref (info); return NULL; } - + document = ev_document_factory_get_from_mime (info->mime_type); if (document == NULL) { g_set_error (error, EV_DOCUMENT_ERROR, 0, - _("Unhandled MIME type: '%s'"), info->mime_type); + _("Unhandled MIME type: “%s”"), info->mime_type); gnome_vfs_file_info_unref (info); return NULL; } @@ -280,7 +280,7 @@ EvDocument * ev_document_factory_get_document (const char *uri, GError **error) { EvDocument *document; - + document = get_document_from_uri (uri, FALSE, error); if (*error == NULL) { @@ -290,6 +290,8 @@ ev_document_factory_get_document (const char *uri, GError **error) if (*error) { g_error_free (*error); *error = NULL; + } else { + return document; } document = get_document_from_uri (uri, TRUE, error);