--- a/QTfrontend/game.cpp Sat Dec 15 23:24:43 2007 +0000
+++ b/QTfrontend/game.cpp Sun Dec 16 15:58:29 2007 +0000
@@ -49,8 +49,6 @@
void HWGame::onClientDisconnect()
{
switch (gameType) {
- case gtDemo:
- break;
case gtNet:
emit HaveRecord(true, demo);
break;
--- a/QTfrontend/pages.cpp Sat Dec 15 23:24:43 2007 +0000
+++ b/QTfrontend/pages.cpp Sun Dec 16 15:58:29 2007 +0000
@@ -31,6 +31,7 @@
#include <QRadioButton>
#include <QTableView>
#include <QMessageBox>
+#include <QHeaderView>
#include "pages.h"
#include "sdlkeys.h"
@@ -80,7 +81,7 @@
BtnLoad = new QPushButton(this);
BtnLoad->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
BtnLoad->setFont(*font14);
- BtnLoad->setText(QPushButton::tr("Load"));
+ BtnLoad->setText(QPushButton::tr("Saved games"));
pageLayout->addWidget(BtnLoad, 3, 1);
BtnDemos = new QPushButton(this);
@@ -493,6 +494,8 @@
else
tvServersList->setModel(new HWNetWwwModel(tvServersList));
+ tvServersList->horizontalHeader()->setResizeMode(0, QHeaderView::Stretch);
+
static_cast<HWNetServersModel *>(tvServersList->model())->updateList();
connect(BtnUpdateSList, SIGNAL(clicked()), static_cast<HWNetServersModel *>(tvServersList->model()), SLOT(updateList()));