the entries are not stored if are empty strings

preferencesAboutTextFull
Claudio Valerio 13 years ago
parent feac46e0ab
commit 05a8d6fe74
  1. 3
      src/gui/UBTeacherGuideWidget.cpp

@ -204,12 +204,15 @@ QVector<tIDataStorage*> UBTeacherGuideEditionWidget::save(int pageIndex)
data->name = "title";
data->type = eElementType_UNIQUE;
data->attributes.insert("value",mpPageTitle->text());
if(mpPageTitle->text().length()){
result << data;
}
data = new tIDataStorage();
data->name = "comment";
data->type = eElementType_UNIQUE;
data->attributes.insert("value",mpComment->text());
if(mpComment->text().length())
result << data;
QList<QTreeWidgetItem*> children = getChildrenList(mpAddAnActionItem);

Loading…
Cancel
Save