[Kstars-devel] branches/kstars/summer/kstars/kstars/tools
Prakash Mohan
prak902000 at gmail.com
Thu May 28 09:06:42 CEST 2009
SVN commit 973901 by prakash:
Unnamed stars need not be updated in the list as we display them using ra0(), dec0() in the TableView.
CCMAIL: kstars-devel at kde.org
M +8 -4 observinglist.cpp
--- branches/kstars/summer/kstars/kstars/tools/observinglist.cpp #973900:973901
@@ -1129,12 +1129,16 @@
//Creating a copy of the lists, we can't use the original lists as they'll keep getting modified as the loop iterates
QList<SkyObject*> _obsList=m_ObservingList, _SessionList=m_SessionList;
foreach ( SkyObject *o, _obsList ) {
- slotRemoveObject( o, false, true );
- slotAddObject( o, false, true );
+ if( o->name() != "star" ) {
+ slotRemoveObject( o, false, true );
+ slotAddObject( o, false, true );
+ }
}
foreach ( SkyObject *obj, _SessionList ) {
- slotRemoveObject( obj, true );
- slotAddObject( obj, true, true );
+ if( obj->name() != "star" ) {
+ slotRemoveObject( obj, true );
+ slotAddObject( obj, true, true );
+ }
}
}
#include "observinglist.moc"
More information about the Kstars-devel
mailing list