[Kstars-devel] branches/kstars/summer/kstars/kstars/comast
Prakash Mohan
prak902000 at gmail.com
Thu Aug 6 20:07:32 CEST 2009
SVN commit 1008031 by prakash:
Fixing a crash, which occurs when the target list is empty.
CCMAIL: kstars-devel at kde.org
M +4 -2 execute.cpp
--- branches/kstars/summer/kstars/kstars/comast/execute.cpp #1008030:1008031
@@ -221,9 +221,11 @@
}
void Execute::addTargetNotes() {
- SkyObject *o = ks->observingList()->findObjectByName( ui.Target->currentItem()->text() );
- currentTarget = o;
+ if( ! ui.Target->count() )
+ return;
+ SkyObject *o = KStars::Instance()->observingList()->findObjectByName( ui.Target->currentItem()->text() );
if( o ) {
+ currentTarget = o;
o->setNotes( ui.Notes->toPlainText() );
ui.Notes->clear();
loadObservationTab();
More information about the Kstars-devel
mailing list