Merge pull request #17 from orivej/layout

Do not add layouts twice
This commit is contained in:
Mathias Panzenböck
2017-12-31 18:12:13 +01:00
committed by GitHub

View File

@ -32,7 +32,7 @@ LayoutEdit::LayoutEdit( LayoutManager* l )
cmbLayouts = new QComboBox(frame);
connect(cmbLayouts, SIGNAL(activated(int)), this, SLOT(load(int)));
QHBoxLayout *layoutLayout = new QHBoxLayout(this);
QHBoxLayout *layoutLayout = new QHBoxLayout();
//most of these buttons can link directly into slots in the LayoutManager
btnAdd = new QPushButton(frame);
@ -118,7 +118,7 @@ LayoutEdit::LayoutEdit( LayoutManager* l )
updateLayoutList();
//add the buttons at the bottom.
QHBoxLayout* h = new QHBoxLayout(this);
QHBoxLayout* h = new QHBoxLayout();
h->setMargin(0);
h->setSpacing(5);
QPushButton* close = new QPushButton(QIcon::fromTheme("window-close"), tr("&Close Dialog"), this );