mirror of
https://github.com/YACReader/yacreader
synced 2025-07-20 14:04:40 -04:00
bug corregido en goto dialog (aceptaba valores de p?gina <1)
This commit is contained in:
@ -60,8 +60,12 @@ void GoToDialog::goTo()
|
|||||||
{
|
{
|
||||||
unsigned int page = pageNumber->text().toInt();
|
unsigned int page = pageNumber->text().toInt();
|
||||||
pageNumber->clear();
|
pageNumber->clear();
|
||||||
|
|
||||||
|
if(page >= 1)
|
||||||
emit(goToPage(page));
|
emit(goToPage(page));
|
||||||
|
|
||||||
close();
|
close();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GoToDialog::setNumPages(unsigned int numPages)
|
void GoToDialog::setNumPages(unsigned int numPages)
|
||||||
|
Reference in New Issue
Block a user