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