Resolved an issue related to the teacher bar

preferencesAboutTextFull
shibakaneki 13 years ago
parent ca3b2cac68
commit d83914d922
  1. 2
      src/core/UBPersistenceManager.cpp

@ -1075,7 +1075,7 @@ void UBPersistenceManager::persistTeacherBar(UBDocumentProxy* pDocumentProxy, in
if(f.open(QIODevice::WriteOnly)) if(f.open(QIODevice::WriteOnly))
{ {
QDomElement rootElem = domDoc.documentElement(); QDomElement rootElem = domDoc.documentElement();
QDomNode teacherBarNode = domDoc.namedItem("teacherBar"); QDomNode teacherBarNode = rootElem.namedItem("teacherBar");
if(teacherBarNode.isNull()) if(teacherBarNode.isNull())
{ {
// Create the element // Create the element

Loading…
Cancel
Save