]> www.fi.muni.cz Git - evince.git/commitdiff
Fallback even if extension is unknown
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Mon, 3 Apr 2006 14:28:46 +0000 (14:28 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Mon, 3 Apr 2006 14:28:46 +0000 (14:28 +0000)
backend/ev-document-factory.c

index c02801fbc1aff16c2eec45b74afd082a61309711..d31506db8b4fb64056c3be9b7184edcbe9bf447c 100644 (file)
@@ -283,12 +283,10 @@ ev_document_factory_get_document (const char *uri, GError **error)
        
        document = get_document_from_uri (uri, FALSE, error);
 
-       if (*error != NULL) {
-               return NULL;
+       if (*error == NULL) {
+               ev_document_load (document, uri, error);
        }
-
-       ev_document_load (document, uri, error);
-               
+       
        if (*error) {
                g_error_free (*error);
                *error = NULL;