mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-07 19:36:01 +01:00
solution for #6?
This could be a solution for #6 but needs some testing first.
This commit is contained in:
parent
cddc0aa383
commit
806f0e0518
1 changed files with 6 additions and 1 deletions
|
@ -2099,7 +2099,12 @@ sc_reload(Argument* argument)
|
||||||
|
|
||||||
/* reopen and restore settings */
|
/* reopen and restore settings */
|
||||||
close_file(TRUE);
|
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));
|
g_static_mutex_lock(&(Zathura.Lock.pdf_obj_lock));
|
||||||
Zathura.PDF.scale = scale;
|
Zathura.PDF.scale = scale;
|
||||||
|
|
Loading…
Reference in a new issue