[Kstars-devel] branches/kstars/summer/kstars/kstars/comast
Prakash Mohan
prak902000 at gmail.com
Tue Jul 28 23:18:31 CEST 2009
SVN commit 1003815 by prakash:
Using the findObjectByName function instead of objectNamed() from skyMapComposite as we need to search for only objects in the session list.
CCMAIL: kstars-devel at kde.org
M +2 -3 execute.cpp
--- branches/kstars/summer/kstars/kstars/comast/execute.cpp #1003814:1003815
@@ -169,8 +169,7 @@
}
void Execute::addTargetNotes() {
- SkyObject *o = ks->data()->objectNamed( ui.TargetList->currentText() );
- if ( ! o ) o = ks->data()->skyComposite()->findStarByGenetiveName( ui.TargetList->currentText() );
+ SkyObject *o = ks->observingList()->findObjectByName( ui.TargetList->currentText() );
if( o ) {
o->setNotes( ui.Notes->toPlainText() );
loadObservationTab();
@@ -195,7 +194,7 @@
}
void Execute::slotSetTarget( QString name ) {
- currentTarget = ks->data()->objectNamed( name );
+ currentTarget = ks->observingList()->findObjectByName( name );
}
#include "execute.moc"
More information about the Kstars-devel
mailing list