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

Prakash Mohan prak902000 at gmail.com
Wed Jul 29 21:14:01 CEST 2009


SVN commit 1004278 by prakash:

Fixing a bug, the findObserverByName() must have had ui.o_Id->text() and not ui.Id->text() passed to search for existing obesrvations.

CCMAIL: kstars-devel at kde.org


 M  +1 -2      execute.cpp  


--- branches/kstars/summer/kstars/kstars/comast/execute.cpp #1004277:1004278
@@ -184,13 +184,12 @@
    ui.stackedWidget->setCurrentIndex( 2 );
 }
 
-
 bool Execute::addObservation() {
     if( ui.Id->text().isEmpty() ) {
         KMessageBox::sorry( 0, i18n("The Id field cannot be empty"), i18n("Invalid Id") );
         return false;
     }
-    Comast::Observation *o = logObject->findObservationByName( ui.Id->text() );
+    Comast::Observation *o = logObject->findObservationByName( ui.o_Id->text() );
     KStarsDateTime dt = currentSession->begin();
     dt.setTime( ui.Time->time() );
     if( o ){


More information about the Kstars-devel mailing list