[Kstars-devel] branches/kstars/summer/kstars/kstars/comast

Prakash Mohan prak902000 at gmail.com
Mon Jul 27 07:25:27 CEST 2009


SVN commit 1002837 by prakash:

Save just the observer list and not everything in the global logObject, while saving the observer list.

CCMAIL: kstars-devel at kde.org


 M  +4 -1      observeradd.cpp  


--- branches/kstars/summer/kstars/kstars/comast/observeradd.cpp #1002836:1002837
@@ -75,7 +75,10 @@
         return;
     }
     QTextStream ostream( &f );
-    ostream << ks->data()->logObject()->writeLog( false );
+    ks->data()->logObject()->writeBegin(); //Initialize the xml document, etc.
+    ks->data()->logObject()->writeObservers();//Write the observer list into the QString
+    ks->data()->logObject()->writeEnd();//End the write process
+    ostream << ks->data()->logObject()->writtenOutput();
     f.close();
 }
 


More information about the Kstars-devel mailing list