Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
cdece592
Commit
cdece592
authored
May 28, 2013
by
Moritz Lipp
Browse files
Fix previous commit
parent
cf96d527
Changes
1
Hide whitespace changes
Inline
Side-by-side
zathura.c
View file @
cdece592
...
...
@@ -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
);
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
)
{
zathura_password_dialog_info_t
*
password_dialog_info
=
malloc
(
sizeof
(
zathura_password_dialog_info_t
));
if
(
password_dialog_info
!=
NULL
)
{
...
...
@@ -581,6 +578,9 @@ document_open(zathura_t* zathura, const char* path, const char* password,
}
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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment