Skip to content

Commit

Permalink
Fixed the issue with the default expression example being hard coded …
Browse files Browse the repository at this point in the history
…and being out of sync
  • Loading branch information
weschristiansen committed Jun 30, 2011
1 parent 56facfe commit f1e9fe2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/Interface/ToolInterface/ArithmeticFilterInterface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,9 @@ bool ArithmeticFilterInterface::build_widget( QFrame* frame )
QtUtils::QtBridge::Enable( this->private_->ui_.runFilterButton,tool->valid_target_state_ );
QtUtils::QtBridge::Show( this->private_->ui_.message_alert_, tool->valid_target_state_, true );

for ( size_t j = 0; j < this->private_->predefined_.size(); j++ )
{
this->private_->ui_.predefined_expressions_->addItem( QString::fromStdString(
this->private_->predefined_[ j ].first ) );
}

connect( this->private_->ui_.predefined_expressions_, SIGNAL( activated(
connect( this->private_->ui_.predefined_expressions_, SIGNAL( currentIndexChanged(
int ) ), SLOT( set_predefined_text( int ) ) );

// Step 4 - Qt connections
{
Core::StateEngine::lock_type lock( Core::StateEngine::GetMutex() );
Expand All @@ -148,7 +142,13 @@ bool ArithmeticFilterInterface::build_widget( QFrame* frame )

this->connect( this->private_->ui_.runFilterButton, SIGNAL( clicked() ),
this, SLOT( run_filter() ) );
}
}

for ( size_t j = 0; j < this->private_->predefined_.size(); j++ )
{
this->private_->ui_.predefined_expressions_->addItem( QString::fromStdString(
this->private_->predefined_[ j ].first ) );
}

return true;

Expand Down

0 comments on commit f1e9fe2

Please sign in to comment.