[Kstars-devel] branches/kstars/summer/kstars/kstars/tools
Prakash Mohan
prak902000 at gmail.com
Thu May 28 09:11:58 CEST 2009
SVN commit 973903 by prakash:
The currentIndex() check should not be done while updating.
CCMAIL: kstars-devel at kde.org
M +7 -6 observinglist.cpp
--- branches/kstars/summer/kstars/kstars/tools/observinglist.cpp #973902:973903
@@ -276,12 +276,13 @@
}
void ObservingList::slotRemoveObject( SkyObject *o, bool session, bool update ) {
-
- if ( !o )
- o = ks->map()->clickedObject();
- else
- if( ui->tabWidget->currentIndex() )
- session = true;
+ if(!update) {
+ if ( !o )
+ o = ks->map()->clickedObject();
+ else
+ if( ui->tabWidget->currentIndex() )
+ session = true;
+ }
if( !session ) {
int k = obsList().indexOf( o );
if ( k < 0 ) return; //object not in observing list
More information about the Kstars-devel
mailing list