Commit f6e51af8 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix layout. Remove duplicate line

parent 93637c89
...@@ -29,18 +29,18 @@ SelectThunderbirdProfileDialog::SelectThunderbirdProfileDialog(QWidget *parent) ...@@ -29,18 +29,18 @@ SelectThunderbirdProfileDialog::SelectThunderbirdProfileDialog(QWidget *parent)
: QDialog(parent) : QDialog(parent)
{ {
setWindowTitle(i18n("Select thunderbird profile")); setWindowTitle(i18n("Select thunderbird profile"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); setModal(true);
QVBoxLayout *topLayout = new QVBoxLayout; QVBoxLayout *topLayout = new QVBoxLayout(this);
setLayout(topLayout);
mSelectProfile = new SelectThunderbirdProfileWidget(this);
topLayout->addWidget(mSelectProfile);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok); QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
okButton->setDefault(true); okButton->setDefault(true);
okButton->setShortcut(Qt::CTRL | Qt::Key_Return); okButton->setShortcut(Qt::CTRL | Qt::Key_Return);
connect(buttonBox, &QDialogButtonBox::accepted, this, &SelectThunderbirdProfileDialog::accept); connect(buttonBox, &QDialogButtonBox::accepted, this, &SelectThunderbirdProfileDialog::accept);
connect(buttonBox, &QDialogButtonBox::rejected, this, &SelectThunderbirdProfileDialog::reject); connect(buttonBox, &QDialogButtonBox::rejected, this, &SelectThunderbirdProfileDialog::reject);
okButton->setDefault(true);
setModal(true);
mSelectProfile = new SelectThunderbirdProfileWidget(this);
topLayout->addWidget(mSelectProfile);
topLayout->addWidget(buttonBox); topLayout->addWidget(buttonBox);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment