Skip to content

Commit

Permalink
Merge pull request #33 from DUNE-DAQ/gcrone/first-class-hack
Browse files Browse the repository at this point in the history
Workaround for issue creating object from first class in list
  • Loading branch information
gcrone authored Oct 2, 2024
2 parents 87c2a3b + f3f6242 commit b5128af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widgets/ObjectCreator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ dbe::ObjectCreator::ObjectCreator ( dunedaq::conffwk::class_t const & cinfo, QWi
BuildContextMenu();

int index = ui->ComboBoxClass->findText ( cname );

ui->ComboBoxClass->setCurrentIndex ( index );
ui->ComboBoxClass->setCurrentIndex ( 1 ); // If index is 0 somehow this doesnt work
ui->ComboBoxClass->setCurrentIndex ( index ); // Now set it to the right value posssibly 0
setup_editor();
ui->ComboBoxClass->setEditText ( cname );

Expand Down

0 comments on commit b5128af

Please sign in to comment.