equal
deleted
inserted
replaced
729 tr("Please select record from the list above"), |
729 tr("Please select record from the list above"), |
730 tr("OK")); |
730 tr("OK")); |
731 return; |
731 return; |
732 } |
732 } |
733 CreateGame(0, 0, 0); |
733 CreateGame(0, 0, 0); |
734 game->PlayDemo(curritem->data(Qt::UserRole).toString()); |
734 game->PlayDemo(curritem->data(Qt::UserRole).toString(), ui.pagePlayDemo->isSave()); |
735 } |
735 } |
736 |
736 |
737 void HWForm::PlayDemoQuick(const QString & demofilename) |
737 void HWForm::PlayDemoQuick(const QString & demofilename) |
738 { |
738 { |
739 if (game && game->gameState == gsStarted) return; |
739 if (game && game->gameState == gsStarted) return; |
740 GoBack(); //needed to cleanly disconnect from netgame |
740 GoBack(); //needed to cleanly disconnect from netgame |
741 GoToPage(ID_PAGE_MAIN); |
741 GoToPage(ID_PAGE_MAIN); |
742 CreateGame(0, 0, 0); |
742 CreateGame(0, 0, 0); |
743 game->PlayDemo(demofilename); |
743 game->PlayDemo(demofilename, false); |
744 } |
744 } |
745 |
745 |
746 void HWForm::NetConnectServer(const QString & host, quint16 port) |
746 void HWForm::NetConnectServer(const QString & host, quint16 port) |
747 { |
747 { |
748 _NetConnect(host, port, ui.pageOptions->editNetNick->text().trimmed()); |
748 _NetConnect(host, port, ui.pageOptions->editNetNick->text().trimmed()); |