Fix document update feature

This commit is contained in:
Moritz Lipp 2010-05-09 22:28:25 +02:00
parent 0b2c7c3a12
commit 473e51b8dc

View file

@ -1219,12 +1219,12 @@ watch_file(void* parameter)
int page = Zathura.PDF.page_number;
/* reopen and restore settings */
gdk_threads_enter();
cmd_close(0, NULL);
open_file(path, password);
Zathura.PDF.scale = scale;
gdk_threads_enter();
draw(page);
gdk_threads_leave();