QTfrontend/hwform.cpp
changeset 580 d3ebf84e9fad
parent 579 94db15de0392
child 581 909141b17f68
--- a/QTfrontend/hwform.cpp	Mon Aug 20 17:49:39 2007 +0000
+++ b/QTfrontend/hwform.cpp	Mon Aug 20 18:11:43 2007 +0000
@@ -156,7 +156,7 @@
 	QDir tmpdir;
 	tmpdir.cd(cfgdir->absolutePath());
 	tmpdir.cd("Saves");
-	ui.pagePlayDemo->FillFromDir(tmpdir);
+	ui.pagePlayDemo->FillFromDir(tmpdir, "hws_" + *cProtoVer);
 
 	GoToPage(ID_PAGE_DEMOS);
 }
@@ -166,7 +166,7 @@
 	QDir tmpdir;
 	tmpdir.cd(cfgdir->absolutePath());
 	tmpdir.cd("Demos");
-	ui.pagePlayDemo->FillFromDir(tmpdir);
+	ui.pagePlayDemo->FillFromDir(tmpdir, "hwd_" + *cProtoVer);
 
 	GoToPage(ID_PAGE_DEMOS);
 }
@@ -308,7 +308,7 @@
 		return ;
 	}
 	CreateGame(0, 0);
-	game->PlayDemo(cfgdir->absolutePath() + "/Demos/" + curritem->text() + ".hwd_" + *cProtoVer);
+	game->PlayDemo(curritem->data(Qt::UserRole).toString());
 }
 
 void HWForm::NetConnectServer()