[Kstars-devel] branches/kstars/summer/kstars/kstars/comast
Prakash Mohan
prak902000 at gmail.com
Wed Jul 29 22:17:46 CEST 2009
SVN commit 1004306 by prakash:
Re enabling the call for slotSetCurrentTarget as the bug of the currentTarget always ending up as the second item in the list has been fixed using a QString to remember the prevTarget.
CCMAIL: kstars-devel at kde.org
M +4 -2 execute.cpp
--- branches/kstars/summer/kstars/kstars/comast/execute.cpp #1004305:1004306
@@ -60,8 +60,8 @@
this, SLOT( slotNext() ) );
connect( ui.Location, SIGNAL( clicked() ),
this, SLOT( slotLocation() ) );
-// connect( ui.TargetList, SIGNAL( currentIndexChanged(const QString) ),
-// this, SLOT( slotSetTarget(QString) ) );
+ connect( ui.TargetList, SIGNAL( currentIndexChanged(const QString) ),
+ this, SLOT( slotSetTarget(QString) ) );
}
void Execute::init() {
@@ -112,7 +112,9 @@
case 2: {
if ( addObservation() )
ui.stackedWidget->setCurrentIndex( 1 );
+ QString prevTarget = currentTarget->name();
loadTargets();
+ ui.TargetList->setCurrentIndex( ui.TargetList->findText( prevTarget ) );
selectNextTarget();
break;
}
More information about the Kstars-devel
mailing list