Commit a7996bff authored by Philipp Erhardt's avatar Philipp Erhardt
Browse files

Fix page count display when changing the file

parent 47787c62
......@@ -187,8 +187,6 @@ void Viewer::reload(bool clamp) {
res->load(res->get_file(), info_password.text().toLatin1());
presenter_progress.setMaximum(res->get_page_count());
search_bar->reset_search(); // TODO restart search if loading the same document?
search_bar->load(res->get_file(), info_password.text().toLatin1());
......@@ -197,6 +195,9 @@ void Viewer::reload(bool clamp) {
toc->init();
canvas->get_layout()->clear_selection();
canvas->reload(clamp);
canvas->update_page_overlay();
presenter_progress.setMaximum(res->get_page_count());
}
void Viewer::open(QString new_file) {
......
Markdown is supported
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