[Kstars-devel] branches/kstars/summer/kstars/kstars/tools
Prakash Mohan
prak902000 at gmail.com
Mon May 25 22:47:06 CEST 2009
SVN commit 972863 by prakash:
The Add to Session button should be enabled only when there is atleast one object selected.
CCMAIL: kstars-devel at kde.org
M +4 -1 observinglist.cpp
--- branches/kstars/summer/kstars/kstars/tools/observinglist.cpp #972862:972863
@@ -174,7 +174,7 @@
ui->RemoveButton->setEnabled( false );
ui->NotesLabel->setEnabled( false );
ui->NotesEdit->setEnabled( false );
-// ui->AddToSession->setEnabled( false );
+ ui->AddToSession->setEnabled( false );
slotLoadWishList();
//Hide the MiniButton until I can figure out how to resize the Dialog!
// ui->MiniButton->hide();
@@ -440,6 +440,7 @@
ui->DetailsButton->setEnabled( true );
ui->AVTButton->setEnabled( true );
ui->RemoveButton->setEnabled( true );
+ ui->AddToSession->setEnabled( true );
//Find the selected object in the obsList,
//then break the loop. Now obsList.current()
@@ -494,6 +495,7 @@
ui->NotesLabel->setText( i18n( "Select an object to record notes on it here:" ) );
ui->NotesLabel->setEnabled( false );
ui->NotesEdit->setEnabled( false );
+ ui->AddToSession->setEnabled( false );
m_CurrentObject = 0;
//Clear the user log text box.
@@ -507,6 +509,7 @@
ui->DetailsButton->setEnabled( false );
ui->AVTButton->setEnabled( true );
ui->RemoveButton->setEnabled( true );
+ ui->AddToSession->setEnabled( true );
ui->NotesLabel->setText( i18n( "Select an object to record notes on it here:" ) );
ui->NotesLabel->setEnabled( false );
ui->NotesEdit->setEnabled( false );
More information about the Kstars-devel
mailing list