Skip to content

Commit

Permalink
Fixing Issue #436. OSArgument::valueAsBool was being called without f…
Browse files Browse the repository at this point in the history
…irst checking OSArgument::hasValue.

[#55122410]
  • Loading branch information
elainethale committed Aug 13, 2013
1 parent bede2e3 commit 63cf3e7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions openstudiocore/src/shared_gui_components/EditController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,6 @@ InputController::InputController(EditController * editController,const ruleset::
{
BoolInputView * boolInputView = new BoolInputView();

boolInputView->checkBox->setChecked(m_argument.valueAsBool());

boolInputView->checkBox->setText(QString::fromStdString(m_argument.displayName()));

if( m_argument.hasValue() )
Expand All @@ -244,6 +242,10 @@ InputController::InputController(EditController * editController,const ruleset::
{
boolInputView->checkBox->setChecked(m_argument.defaultValueAsBool());
}
else {
boolInputView->checkBox->setChecked(false);
setValue(false);
}

bool bingo = connect(boolInputView->checkBox,SIGNAL(clicked(bool)),this,SLOT(setValue(bool)));

Expand Down

0 comments on commit 63cf3e7

Please sign in to comment.