Skip to content

Commit

Permalink
Don't fill up pair combo-boxes manually when filling table.
Browse files Browse the repository at this point in the history
This will be done in a slot, when group table is changed.

Refs #7557
  • Loading branch information
arturbekasov committed Oct 17, 2013
1 parent 855a27c commit 0fe75a2
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions Code/Mantid/MantidQt/CustomInterfaces/src/IO_MuonGrouping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,23 +330,6 @@ void fillGroupingTable(const Grouping& g, Ui::MuonAnalysis& form)
form.groupTable->setItem(gi, 1, new QTableWidgetItem(g.groups[gi].c_str()));
}

// Fill up forward/backward group combo-boxes for pair table
for (int ri = 0; ri < form.pairTable->rowCount(); ri++)
{
QComboBox* fwd = static_cast<QComboBox*>(form.pairTable->cellWidget(ri,1));
QComboBox* bwd = static_cast<QComboBox*>(form.pairTable->cellWidget(ri,2));

for (size_t gi = 0; gi < g.groups.size(); gi++)
{
fwd->addItem(g.groupNames[gi].c_str());
bwd->addItem(g.groupNames[gi].c_str());
}

// Set the backward group to the second one by default, if have one
if (bwd->count() > 1 )
bwd->setCurrentIndex(1);
}

// Add pairs to the table
for(int pi = 0; pi < static_cast<int>(g.pairs.size()); pi++)
{
Expand Down

0 comments on commit 0fe75a2

Please sign in to comment.