mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-11 06:03:46 +01:00
Fix previous commit
This commit is contained in:
parent
cf96d52790
commit
cdece59229
@ -562,9 +562,6 @@ document_open(zathura_t* zathura, const char* path, const char* password,
|
|||||||
zathura_document_t* document = zathura_document_open(zathura->plugins.manager, path, password, &error);
|
zathura_document_t* document = zathura_document_open(zathura->plugins.manager, path, password, &error);
|
||||||
|
|
||||||
if (document == NULL) {
|
if (document == NULL) {
|
||||||
if (error == NULL ) {
|
|
||||||
girara_notify(zathura->ui.session, GIRARA_ERROR, _("Unsupported file type. Please install the necessary plugin."), false, NULL, NULL, NULL);
|
|
||||||
}
|
|
||||||
if (error == ZATHURA_ERROR_INVALID_PASSWORD) {
|
if (error == ZATHURA_ERROR_INVALID_PASSWORD) {
|
||||||
zathura_password_dialog_info_t* password_dialog_info = malloc(sizeof(zathura_password_dialog_info_t));
|
zathura_password_dialog_info_t* password_dialog_info = malloc(sizeof(zathura_password_dialog_info_t));
|
||||||
if (password_dialog_info != NULL) {
|
if (password_dialog_info != NULL) {
|
||||||
@ -581,6 +578,9 @@ document_open(zathura_t* zathura, const char* path, const char* password,
|
|||||||
}
|
}
|
||||||
goto error_out;
|
goto error_out;
|
||||||
}
|
}
|
||||||
|
if (error == ZATHURA_ERROR_OK ) {
|
||||||
|
girara_notify(zathura->ui.session, GIRARA_ERROR, _("Unsupported file type. Please install the necessary plugin."));
|
||||||
|
}
|
||||||
goto error_out;
|
goto error_out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user