QTfrontend/hwform.cpp
changeset 5865 35387d27f73a
parent 5849 b84b41aba275
child 5907 64ccc6be0ec5
equal deleted inserted replaced
5864:6cc72b333c5f 5865:35387d27f73a
   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());