fixed empty event box at the bottom of the event form

( addressed issue #13 )
This commit is contained in:
Dorian Zedler 2018-12-26 10:37:14 +01:00
parent a7a26513c0
commit b55d398ce0

View file

@ -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<QStringList> 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