This should resend scheme info to net server when scheme got edited (not tested)
authorunc0rr
Wed, 20 May 2009 16:43:19 +0000
changeset 2080 6d29370dc0dd
parent 2079 f188ec7c450b
child 2081 025507838f1d
This should resend scheme info to net server when scheme got edited (not tested)
QTfrontend/gamecfgwidget.cpp
QTfrontend/gamecfgwidget.h
QTfrontend/hwform.cpp
--- a/QTfrontend/gamecfgwidget.cpp	Wed May 20 16:35:27 2009 +0000
+++ b/QTfrontend/gamecfgwidget.cpp	Wed May 20 16:43:19 2009 +0000
@@ -246,3 +246,8 @@
 		
 	emit paramChanged("SCHEME", sl);
 }
+
+void GameCFGWidget::resendSchemeData()
+{
+	schemeChanged(GameSchemes->currentIndex());
+}
--- a/QTfrontend/gamecfgwidget.h	Wed May 20 16:35:27 2009 +0000
+++ b/QTfrontend/gamecfgwidget.h	Wed May 20 16:43:19 2009 +0000
@@ -48,6 +48,7 @@
 public slots:
 	void setParam(const QString & param, const QStringList & value);
 	void fullNetConfig();
+	void resendSchemeData();
 
 signals:
 	void paramChanged(const QString & param, const QStringList & value);
--- a/QTfrontend/hwform.cpp	Wed May 20 16:35:27 2009 +0000
+++ b/QTfrontend/hwform.cpp	Wed May 20 16:43:19 2009 +0000
@@ -871,6 +871,11 @@
 		connect(ui.pageNetGame->BtnStart, SIGNAL(clicked()), hwnet, SLOT(startGame()));
 		connect(ui.pageNetGame->restrictJoins, SIGNAL(triggered()), hwnet, SLOT(toggleRestrictJoins()));
 		connect(ui.pageNetGame->restrictTeamAdds, SIGNAL(triggered()), hwnet, SLOT(toggleRestrictTeamAdds()));
+		connect(ui.pageNetGame->pGameCFG->GameSchemes->model(),
+				SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)),
+				ui.pageNetGame->pGameCFG,
+				SLOT(resendSchemeData())
+				);
 	}
 }