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

Prakash Mohan prak902000 at gmail.com
Tue May 26 15:29:48 CEST 2009


SVN commit 973093 by prakash:

There was a small bug in the saving and loading of the SessionList. Fixing that.

CCMAIL: kstars-devel at kde.org


 M  +2 -2      observinglist.cpp  


--- branches/kstars/summer/kstars/kstars/tools/observinglist.cpp #973092:973093
@@ -909,7 +909,7 @@
 
 
 void ObservingList::slotSaveSession() {
-    if ( FileName.isEmpty() ) {
+    if ( FileName.isEmpty() || SessionName.isEmpty()  ) {
         slotSaveSessionAs();
         return;
     }
@@ -925,7 +925,7 @@
     }
     QTextStream ostream(&f);
     ostream << SessionName << endl;
-    foreach ( SkyObject* o, obsList() ) {
+    foreach ( SkyObject* o, SessionList() ) {
         if ( o->name() == "star" ) {
             ostream << o->name() << "  " << o->ra()->Hours() << "  " << o->dec()->Degrees() << endl;
         } else if ( o->type() == SkyObject::STAR ) {


More information about the Kstars-devel mailing list