mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
fixed goToFlow (page 0 not allowed)
This commit is contained in:
parent
835c0fa0e7
commit
7b82b23962
@ -111,10 +111,12 @@ void GoToFlowToolBar::resizeEvent(QResizeEvent * event)
|
||||
|
||||
void GoToFlowToolBar::goTo()
|
||||
{
|
||||
emit(goTo(edit->text().toInt()-1));
|
||||
if(edit->text().toInt()!=0)
|
||||
emit(goTo(edit->text().toInt()-1));
|
||||
}
|
||||
|
||||
void GoToFlowToolBar::centerSlide()
|
||||
{
|
||||
emit(setCenter(edit->text().toInt()-1));
|
||||
if(edit->text().toInt()!=0)
|
||||
emit(setCenter(edit->text().toInt()-1));
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user