QTfrontend/model/roomslistmodel.cpp
changeset 10511 c33b2f001730
parent 10391 ce3ccc45d790
child 10739 d886f319e7b3
equal deleted inserted replaced
10510:9329dab04490 10511:c33b2f001730
   260 {
   260 {
   261     QStringList result;
   261     QStringList result;
   262 
   262 
   263     result = info;
   263     result = info;
   264 
   264 
       
   265     QString flags = info[StateColumn];
   265     // for matters of less memory usage and quicker access store
   266     // for matters of less memory usage and quicker access store
   266     // the boolean string as either "t" or empty
   267     // the boolean string as either "t" or empty
   267     if (info[StateColumn].toLower() == "true")
   268     if (flags.contains('g'))
   268         result[StateColumn] = "t";
   269         result[StateColumn] = "t";
   269     else
   270     else
   270         result[StateColumn] = QString();
   271         result[StateColumn] = QString();
   271 
   272 
   272     return result;
   273     return result;