diff options
-rw-r--r-- | client/widgets/altcombobox.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/widgets/altcombobox.cc b/client/widgets/altcombobox.cc index e18fb59..f60fb5c 100644 --- a/client/widgets/altcombobox.cc +++ b/client/widgets/altcombobox.cc @@ -90,6 +90,9 @@ AltComboBox::AltComboBox(QDomNode &node, MacroWindow *macrowindow) } else if(item.attribute("layout") == "vbox") { QVBoxLayout *layout = new QVBoxLayout(); altframe->setLayout(layout); + } else { // Illigal layout choosen. + QVBoxLayout *layout = new QVBoxLayout(); + altframe->setLayout(layout); } } else { QHBoxLayout *layout = new QHBoxLayout(); @@ -121,7 +124,7 @@ AltComboBox::AltComboBox(QDomNode &node, MacroWindow *macrowindow) connect(innerwidget, SIGNAL(wasChanged()), this, SLOT(onChildChange())); frame->layout()->setContentsMargins(0,0,0,0); - altframe->layout()->setContentsMargins(0,0,0,0); + //altframe->layout()->setContentsMargins(0,0,0,0); frame->show(); // Force altframe to get resized to its real size. altframerepl->setFixedHeight(altframe->height()); |