[atlantik-cvs] CVS: kdegames/atlantik/client selectconfiguration_widget.cpp, 1.39.2.3, 1.39.2.4

[email protected] Mon, 8 Dec 2003 06:25:02 +0100 (CET)
Newsgroups gmane.comp.kde.devel.atlantik
Message-ID <[email protected]>
Update of /home/kde/kdegames/atlantik/client
In directory office:/tmp/cvs-serv3093/client

Modified Files:
      Tag: atlantik_3_3_branch
	selectconfiguration_widget.cpp 
Log Message:
game update can change master, recheck whether config checkbuttons should be enabled

Index: selectconfiguration_widget.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/client/selectconfiguration_widget.cpp,v
retrieving revision 1.39.2.3
retrieving revision 1.39.2.4
diff -u -d -r1.39.2.3 -r1.39.2.4
--- selectconfiguration_widget.cpp	7 Dec 2003 23:31:50 -0000	1.39.2.3
+++ selectconfiguration_widget.cpp	8 Dec 2003 05:24:59 -0000	1.39.2.4
@@ -211,6 +211,8 @@
 
 void SelectConfiguration::gameChanged(Game *game)
 {
-	kdDebug() << "gameChanged" << endl;
 	m_startButton->setEnabled( game->master() == m_atlanticCore->playerSelf() );
+
+	for (QMapIterator<ConfigOption *, QCheckBox *> it = m_configBoxMap.begin() ; it != m_configBoxMap.end() ; ++it)
+		(*it)->setEnabled( it.key()->edit() && m_atlanticCore->selfIsMaster() );
 }