emitpageInfo(window->totalPages(),window->curr_page());// We don't use "currsav" here, because that page may no longer exist. In that case, gotoPage already selected another page.
emitpageInfo(window->totalPages(),window->curr_page()-1);// We don't use "currsav" here, because that page may no longer exist. In that case, gotoPage already selected another page.