diff --git a/YACReader/bookmarks_dialog.cpp b/YACReader/bookmarks_dialog.cpp index 322af57c..627af7bb 100644 --- a/YACReader/bookmarks_dialog.cpp +++ b/YACReader/bookmarks_dialog.cpp @@ -135,7 +135,7 @@ bool BookmarksDialog::eventFilter(QObject *obj, QEvent *event) { if (obj == images.at(0)) { - emit(goToPage(lastPage+1)); + emit(goToPage(lastPage)); close(); event->accept(); } @@ -144,7 +144,7 @@ bool BookmarksDialog::eventFilter(QObject *obj, QEvent *event) if(obj == images.at(i)) { bool b; - int page = pages.at(i)->text().toInt(&b); + int page = pages.at(i)->text().toInt(&b)-1; if(b) { emit(goToPage(page));