From d83914d92252b01595b8445d536fd2d217789b96 Mon Sep 17 00:00:00 2001 From: shibakaneki Date: Wed, 30 Nov 2011 14:25:22 +0100 Subject: [PATCH] Resolved an issue related to the teacher bar --- src/core/UBPersistenceManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/UBPersistenceManager.cpp b/src/core/UBPersistenceManager.cpp index 33b12078..8e92e360 100644 --- a/src/core/UBPersistenceManager.cpp +++ b/src/core/UBPersistenceManager.cpp @@ -1075,7 +1075,7 @@ void UBPersistenceManager::persistTeacherBar(UBDocumentProxy* pDocumentProxy, in if(f.open(QIODevice::WriteOnly)) { QDomElement rootElem = domDoc.documentElement(); - QDomNode teacherBarNode = domDoc.namedItem("teacherBar"); + QDomNode teacherBarNode = rootElem.namedItem("teacherBar"); if(teacherBarNode.isNull()) { // Create the element