premature optimisation bit me again. 0.9.21
authornemo
Sun, 04 Jan 2015 14:04:17 -0500
branch0.9.21
changeset 10745 fab746a3597e
parent 10743 1d16c5414fee
child 10747 07ade56c3b4a
premature optimisation bit me again.
QTfrontend/model/roomslistmodel.cpp
--- a/QTfrontend/model/roomslistmodel.cpp	Sun Jan 04 00:44:14 2015 -0500
+++ b/QTfrontend/model/roomslistmodel.cpp	Sun Jan 04 14:04:17 2015 -0500
@@ -114,7 +114,7 @@
         const QIcon roomWaitingIconGreen(":/res/iconTimeLockG.png");
         const QIcon roomWaitingIconRed(":/res/iconTimeLockR.png");
 
-        QString flags = m_data.at(row).at(0);
+        QString flags = m_data.at(row).at(StateColumn);
 
         if (flags.contains("g"))
         {
@@ -140,10 +140,6 @@
 
     if (role == Qt::DisplayRole)
     {
-        // supply in progress flag as bool
-        if (column == 0)
-            return QVariant(QString(!content.isEmpty()));
-
         // display room names
         if (column == 5)
         {