equal
deleted
inserted
replaced
438 } else |
438 } else |
439 if (id == ID_PAGE_GAMESTATS) |
439 if (id == ID_PAGE_GAMESTATS) |
440 { |
440 { |
441 ui.pageGameStats->renderStats(); |
441 ui.pageGameStats->renderStats(); |
442 } |
442 } |
|
443 |
|
444 // load and save ignore/friends lists |
|
445 if(lastid == ID_PAGE_MULTIPLAYER || lastid == ID_PAGE_NETGAME) // leaving a room |
|
446 ui.pageNetGame->pChatWidget->saveLists(ui.pageOptions->editNetNick->text()); |
|
447 else if(lastid == ID_PAGE_ROOMSLIST) // leaving the lobby |
|
448 ui.pageRoomsList->chatWidget->saveLists(ui.pageOptions->editNetNick->text()); |
|
449 if(id == ID_PAGE_MULTIPLAYER || id == ID_PAGE_NETGAME) // joining a room |
|
450 ui.pageNetGame->pChatWidget->loadLists(ui.pageOptions->editNetNick->text()); |
|
451 else if(id == ID_PAGE_ROOMSLIST) // joining the lobby |
|
452 ui.pageRoomsList->chatWidget->loadLists(ui.pageOptions->editNetNick->text()); |
443 } |
453 } |
444 |
454 |
445 void HWForm::GoToPage(quint8 id) |
455 void HWForm::GoToPage(quint8 id) |
446 { |
456 { |
447 quint8 lastid = ui.Pages->currentIndex(); |
457 quint8 lastid = ui.Pages->currentIndex(); |