GuiBox: simplification

This commit is contained in:
Juergen Spitzmueller 2015-05-18 13:05:28 +02:00
parent 927136c256
commit 2548e7fd98

View File

@ -183,10 +183,9 @@ void GuiBox::fillComboColor(QComboBox * combo, bool const is_none)
}
void GuiBox::on_innerBoxCO_activated(int /* index */)
void GuiBox::on_innerBoxCO_activated(int index)
{
QString itype =
innerBoxCO->itemData(innerBoxCO->currentIndex()).toString();
QString itype = innerBoxCO->itemData(index).toString();
// handle parbox and minipage the same way
bool const ibox = (itype != "none" && itype != "makebox");
if (heightCB->isChecked() && !ibox)