QTfrontend/ui/page/pagenetgame.cpp
changeset 6539 3222bb0612ca
parent 6227 ce60b734fff1
child 6616 f77bb02b669f
--- a/QTfrontend/ui/page/pagenetgame.cpp	Thu Dec 29 09:29:56 2011 +0100
+++ b/QTfrontend/ui/page/pagenetgame.cpp	Thu Dec 29 09:35:04 2011 +0100
@@ -67,6 +67,7 @@
     leRoomName->setMinimumWidth(200);
     leRoomName->setMaximumWidth(400);
 
+    //Button to signify whether the player is ready to start playing
     BtnGo = new QPushButton(this);
     BtnGo->setToolTip(QPushButton::tr("Ready"));
     BtnGo->setIcon(QIcon(":/res/lightbulb_off.png"));
@@ -74,7 +75,6 @@
     BtnGo->setMinimumWidth(50);
     BtnGo->setMinimumHeight(50);
 
-
     bottomLayout->addWidget(leRoomName);
     BtnUpdate = addButton(QAction::tr("Update"), bottomLayout, 1);
 
@@ -172,6 +172,10 @@
     BtnStart->setVisible(isMaster);
     BtnUpdate->setVisible(isMaster);
     leRoomName->setVisible(isMaster);
+
+    //disable the `toggle ready` button, because the start button does the same
+    //job when the user is chief
+    BtnGo->setVisible(!isMaster);
 }
 
 void PageNetGame::setUser(const QString & nickname)