Skip to content

Commit

Permalink
Refs #6473. Better function name.
Browse files Browse the repository at this point in the history
  • Loading branch information
arturbekasov committed Nov 20, 2013
1 parent cfce459 commit f721208
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Expand Up @@ -67,8 +67,9 @@ namespace MantidWidgets
/// Updates visibility/tooltip of label error asterisk
void updateLabelError(const QString& label);

/// Enables/disables start button depending on wether we are allowed to start.
void updateStartButton();
/// Enables/disables start button depending on wether we are allowed to start
void updateControlButtonState();

};


Expand Down
Expand Up @@ -24,15 +24,15 @@ namespace MantidWidgets
// slot/signal update, as element might be left with default values which means these will
// never be called on initialication.
updateLabelError( m_ui.labelInput->text() );
updateStartButton();
updateControlButtonState();

connect( m_ui.labelInput, SIGNAL( textChanged(const QString&) ),
this, SLOT( updateLabelError(const QString&) ) );

connect( m_ui.labelInput, SIGNAL( textChanged(const QString&) ),
this, SLOT( updateStartButton() ) );
this, SLOT( updateControlButtonState() ) );
connect( m_ui.runs, SIGNAL( fileFindingFinished() ),
this, SLOT( updateStartButton() ) );
this, SLOT( updateControlButtonState() ) );
}

/**
Expand Down Expand Up @@ -79,7 +79,7 @@ namespace MantidWidgets
/**
* Enables/disables start button depending on wether we are allowed to start.
*/
void MuonSequentialFitDialog::updateStartButton()
void MuonSequentialFitDialog::updateControlButtonState()
{
m_ui.controlButton->setEnabled( isInputValid() );
}
Expand Down

0 comments on commit f721208

Please sign in to comment.