layout->addWidget(selector_, Qt::AlignLeft);
ButtonBox* buttons = new ButtonBox;
- buttons->addButton(tr("Save"), this, SLOT(saveUnit()));
+ buttons->setOrientation(Qt::Horizontal);
+ connect(buttons->addButton(tr("Save"), QDialogButtonBox::AcceptRole), SIGNAL(clicked(bool)), this, SLOT(saveUnit()));
layout->addWidget(buttons);