fixed empty event box at the bottom of the event form
( addressed issue #13 )
This commit is contained in:
parent
a7a26513c0
commit
b55d398ce0
1 changed files with 8 additions and 2 deletions
|
@ -283,7 +283,13 @@ int ServerConn::getEvents(QString day){
|
||||||
// class hour replace subject room to text
|
// class hour replace subject room to text
|
||||||
// 8a 1-2 Ei Ch --- Entfall KEINE KA
|
// 8a 1-2 Ei Ch --- Entfall KEINE KA
|
||||||
// [ ] <-- at least two spaces
|
// [ ] <-- 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
|
// temporary list to store the events for the given day
|
||||||
QList<QStringList> tmpEvents;
|
QList<QStringList> tmpEvents;
|
||||||
|
@ -341,7 +347,7 @@ int ServerConn::getEvents(QString day){
|
||||||
tmpString = "";
|
tmpString = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
qDebug() << "char= " << tmpChar << " string= " << tmpString << " list= " << dayList;
|
//qDebug() << "char= " << tmpChar << " string= " << tmpString << " list= " << dayList;
|
||||||
}
|
}
|
||||||
|
|
||||||
// append the remaining tmpString to the dayList
|
// append the remaining tmpString to the dayList
|
||||||
|
|
Reference in a new issue