Commit b0cf2749 authored by Moritz Lipp's avatar Moritz Lipp
Browse files

Fix open_function call

parent 626fd50e
......@@ -270,7 +270,7 @@ zathura_document_open(zathura_t* zathura, const char* path, const char* password
document->scale = 1;
}
if (plugin->open_function == NULL || plugin->open_function(document) == false) {
if (plugin->open_function == NULL || plugin->open_function(document) != ZATHURA_PLUGIN_ERROR_OK) {
girara_error("could not open file\n");
goto error_free;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment