280 } |
280 } |
281 } else { |
281 } else { |
282 curTeamSelWidget->resetPlayingTeams(teamsList); |
282 curTeamSelWidget->resetPlayingTeams(teamsList); |
283 } |
283 } |
284 } |
284 } |
|
285 |
|
286 if (id == ID_PAGE_ROOMSLIST && lastid == ID_PAGE_NETCFG) |
|
287 GoBack(); |
285 } |
288 } |
286 |
289 |
287 void HWForm::GoToPage(quint8 id) |
290 void HWForm::GoToPage(quint8 id) |
288 { |
291 { |
289 quint8 lastid=ui.Pages->currentIndex(); |
292 quint8 lastid = ui.Pages->currentIndex(); |
290 PagesStack.push(ui.Pages->currentIndex()); |
293 PagesStack.push(ui.Pages->currentIndex()); |
291 OnPageShown(id, lastid); |
294 OnPageShown(id, lastid); |
292 ui.Pages->setCurrentIndex(id); |
295 ui.Pages->setCurrentIndex(id); |
293 } |
296 } |
294 |
297 |
295 void HWForm::GoBack() |
298 void HWForm::GoBack() |
296 { |
299 { |
297 if (!PagesStack.isEmpty() && PagesStack.top() == ID_PAGE_NET) { |
300 if (!PagesStack.isEmpty() && PagesStack.top() == ID_PAGE_NET) { |
298 if(hwnet || pnetserver) NetDisconnect(); |
301 if(hwnet || pnetserver) NetDisconnect(); |
299 } |
302 } |
300 quint8 id = PagesStack.isEmpty() ? ID_PAGE_MAIN : PagesStack.pop(); |
303 quint8 id = PagesStack.isEmpty() ? ID_PAGE_MAIN : PagesStack.pop(); |
301 OnPageShown(id, ui.Pages->currentIndex()); |
304 quint8 curid = ui.Pages->currentIndex(); |
302 ui.Pages->setCurrentIndex(id); |
305 ui.Pages->setCurrentIndex(id); |
|
306 OnPageShown(id, curid); |
303 } |
307 } |
304 |
308 |
305 void HWForm::btnExitPressed() |
309 void HWForm::btnExitPressed() |
306 { |
310 { |
307 eggTimer.start(); |
311 eggTimer.start(); |