diff --git a/sources/serverconn.cpp b/sources/serverconn.cpp index d2b41b0..e321f6f 100644 --- a/sources/serverconn.cpp +++ b/sources/serverconn.cpp @@ -283,7 +283,13 @@ int ServerConn::getEvents(QString day){ // class hour replace subject room to text // 8a 1-2 Ei Ch --- Entfall KEINE KA // [ ] <-- at least two spaces - // to OR text can be blank + // 'to' OR 'text' can be blank + + for(int i = 0; i < events.length(); i++){ + if(events[i] == ""){ + events.removeAt(i); + } + } // temporary list to store the events for the given day QList tmpEvents; @@ -341,7 +347,7 @@ int ServerConn::getEvents(QString day){ tmpString = ""; } - qDebug() << "char= " << tmpChar << " string= " << tmpString << " list= " << dayList; + //qDebug() << "char= " << tmpChar << " string= " << tmpString << " list= " << dayList; } // append the remaining tmpString to the dayList