Commit 88687c3f authored by Sebastian Ramacher's avatar Sebastian Ramacher
Browse files

solution for #6?

This could be a solution for #6 but needs some testing first.
parent df6c704c
......@@ -2099,7 +2099,12 @@ sc_reload(Argument* argument)
/* reopen and restore settings */
close_file(TRUE);
open_file(path, password);
if (open_file(path, password) == FALSE)
{
free(path);
free(password);
return;
}
g_static_mutex_lock(&(Zathura.Lock.pdf_obj_lock));
Zathura.PDF.scale = scale;
......
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