zero span is undefined, use -1 instead
authorunc0rr
Thu, 02 Sep 2010 20:19:27 +0400
changeset 3807 7e4f7ed41790
parent 3806 9c2737ba87ea
child 3808 bb4b9a21ec29
zero span is undefined, use -1 instead
QTfrontend/chatwidget.cpp
gameServer/ServerState.hs
--- a/QTfrontend/chatwidget.cpp	Thu Sep 02 14:12:02 2010 +0200
+++ b/QTfrontend/chatwidget.cpp	Thu Sep 02 20:19:27 2010 +0400
@@ -81,7 +81,7 @@
     connect(chatNicks, SIGNAL(currentRowChanged(int)),
         this, SLOT(chatNickSelected(int)));
 
-    mainLayout.addWidget(chatNicks, 0, 1, 0, 1);
+    mainLayout.addWidget(chatNicks, 0, 1, -1, 1);
 
     acInfo = new QAction(QAction::tr("Info"), chatNicks);
     acInfo->setIcon(QIcon(":/res/info.png"));
--- a/gameServer/ServerState.hs	Thu Sep 02 14:12:02 2010 +0200
+++ b/gameServer/ServerState.hs	Thu Sep 02 20:19:27 2010 +0400
@@ -15,10 +15,10 @@
 import CoreTypes
 
 data ServerState = ServerState {
-        clientIndex :: Maybe ClientIndex,
-        serverInfo :: ServerInfo,
-        removedClients :: Set.Set ClientIndex,
-        roomsClients :: MRnC
+        clientIndex :: !(Maybe ClientIndex),
+        serverInfo :: !ServerInfo,
+        removedClients :: !(Set.Set ClientIndex),
+        roomsClients :: !MRnC
     }