Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>2006-04-03 14:28:46 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@src.gnome.org>2006-04-03 14:28:46 (GMT)
commit1ad8b6b9bd67fa4d6ea23885ab2bef25f12316c6 (patch)
tree8637b81a89ea3cc7f8b5f931e3dcbccf2d9ed07d
parent2c3366a76e64a48a45379cfbd59d3af999cf9ac4 (diff)
Fallback even if extension is unknown
-rw-r--r--backend/ev-document-factory.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/backend/ev-document-factory.c b/backend/ev-document-factory.c
index c02801f..d31506d 100644
--- a/backend/ev-document-factory.c
+++ b/backend/ev-document-factory.c
@@ -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;