summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Erhardt <Philipp.Erhardt@informatik.stud.uni-erlangen.de>2015-10-09 15:13:29 +0200
committerPhilipp Erhardt <Philipp.Erhardt@informatik.stud.uni-erlangen.de>2015-10-09 15:13:29 +0200
commita7996bff60c94a039cbfde2c1da190ca4cd0c353 (patch)
tree58a771fb98c57965b970145bc54f75f541d330c1 /src
parent47787c623ebb7b44fc5da473ea2d62f294a12fd6 (diff)
Fix page count display when changing the file
Diffstat (limited to 'src')
-rw-r--r--src/viewer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/viewer.cpp b/src/viewer.cpp
index 0719419..fa8321f 100644
--- a/src/viewer.cpp
+++ b/src/viewer.cpp
@@ -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) {