mirror of
https://github.com/YACReader/yacreader
synced 2025-07-21 06:24:39 -04:00
fixed goToFlow (page 0 not allowed)
This commit is contained in:
@ -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));
|
||||
}
|
Reference in New Issue
Block a user