QTfrontend/model/roomslistmodel.cpp
branch0.9.21
changeset 10741 7fababf10b60
parent 10739 d886f319e7b3
child 10745 fab746a3597e
--- a/QTfrontend/model/roomslistmodel.cpp	Sat Jan 03 17:27:33 2015 -0500
+++ b/QTfrontend/model/roomslistmodel.cpp	Sat Jan 03 18:14:45 2015 -0500
@@ -119,21 +119,21 @@
         if (flags.contains("g"))
         {
             if (flags.contains("j"))
+                return QVariant(roomBusyIconRed);
+            else if (flags.contains("p"))
+                return QVariant(roomBusyIconGreen);
+            else
+                return QVariant(roomBusyIcon);
+        }
+        else
+        {
+            if (flags.contains("j"))
                 return QVariant(roomWaitingIconRed);
             else if (flags.contains("p"))
                 return QVariant(roomWaitingIconGreen);
             else
                 return QVariant(roomWaitingIcon);
         }
-        else
-        {
-            if (flags.contains("j"))
-                return QVariant(roomBusyIconRed);
-            else if (flags.contains("p"))
-                return QVariant(roomBusyIconGreen);
-            else
-                return QVariant(roomBusyIcon);
-        }
     }
 
     QString content = m_data.at(row).at(column);