QTfrontend/hwform.cpp
changeset 2631 163b0128bd21
parent 2532 43d700d8dad0
child 2706 935b7d618cf0
equal deleted inserted replaced
2630:079ef82eac75 2631:163b0128bd21
   526 	QListWidgetItem * curritem = ui.pagePlayDemo->DemosList->currentItem();
   526 	QListWidgetItem * curritem = ui.pagePlayDemo->DemosList->currentItem();
   527 	if (!curritem)
   527 	if (!curritem)
   528 	{
   528 	{
   529 		QMessageBox::critical(this,
   529 		QMessageBox::critical(this,
   530 				tr("Error"),
   530 				tr("Error"),
   531 				tr("Please, select record from the list above"),
   531 				tr("Please select record from the list above"),
   532 				tr("OK"));
   532 				tr("OK"));
   533 		return ;
   533 		return ;
   534 	}
   534 	}
   535 	CreateGame(0, 0, 0);
   535 	CreateGame(0, 0, 0);
   536 	game->PlayDemo(curritem->data(Qt::UserRole).toString());
   536 	game->PlayDemo(curritem->data(Qt::UserRole).toString());