[dss-commits] r8843 - dss/trunk/core
dss-commits at forum.digitalstrom.org
dss-commits at forum.digitalstrom.org
Thu Oct 15 12:08:04 CEST 2009
Author: pstaehlin
Date: 2009-10-15 12:08:04 +0200 (Thu, 15 Oct 2009)
New Revision: 8843
Modified:
dss/trunk/core/model.cpp
Log:
Only ignore ModelDirty events when initializing.
Fixes #119
Modified: dss/trunk/core/model.cpp
===================================================================
--- dss/trunk/core/model.cpp 2009-10-14 14:05:41 UTC (rev 8842)
+++ dss/trunk/core/model.cpp 2009-10-15 10:08:04 UTC (rev 8843)
@@ -1063,7 +1063,8 @@
} // run
void Apartment::addModelEvent(ModelEvent* _pEvent) {
- if(m_IsInitializing) {
+ // filter out dirty events, as this will rewrite apartment.xml
+ if(m_IsInitializing && (_pEvent->getEventType() == ModelEvent::etModelDirty)) {
delete _pEvent;
} else {
m_ModelEventsMutex.lock();
More information about the dss-commits
mailing list