equal
deleted
inserted
replaced
453 GoToPage(ID_PAGE_SCHEME); |
453 GoToPage(ID_PAGE_SCHEME); |
454 } |
454 } |
455 |
455 |
456 void HWForm::OnPageShown(quint8 id, quint8 lastid) |
456 void HWForm::OnPageShown(quint8 id, quint8 lastid) |
457 { |
457 { |
458 // with all those signals firing around make sure we don't switch a page |
|
459 // at the same time in different threads |
|
460 onPageShownMutex.lock(); |
|
461 |
|
462 #ifdef USE_XFIRE |
458 #ifdef USE_XFIRE |
463 updateXfire(); |
459 updateXfire(); |
464 #endif |
460 #endif |
465 if (id == ID_PAGE_DATADOWNLOAD) |
461 if (id == ID_PAGE_DATADOWNLOAD) |
466 { |
462 { |
537 ui.pageNetGame->pChatWidget->loadLists(ui.pageOptions->editNetNick->text()); |
533 ui.pageNetGame->pChatWidget->loadLists(ui.pageOptions->editNetNick->text()); |
538 // joining the lobby |
534 // joining the lobby |
539 else if (id == ID_PAGE_ROOMSLIST) |
535 else if (id == ID_PAGE_ROOMSLIST) |
540 ui.pageRoomsList->chatWidget->loadLists(ui.pageOptions->editNetNick->text()); |
536 ui.pageRoomsList->chatWidget->loadLists(ui.pageOptions->editNetNick->text()); |
541 |
537 |
542 |
|
543 onPageShownMutex.unlock(); |
|
544 } |
538 } |
545 |
539 |
546 void HWForm::GoToPage(int id) |
540 void HWForm::GoToPage(int id) |
547 { |
541 { |
548 int lastid = ui.Pages->currentIndex(); |
542 int lastid = ui.Pages->currentIndex(); |