summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-08-25 11:09:44 (GMT)
committerMontel Laurent <montel@kde.org>2016-08-25 11:09:44 (GMT)
commitf6e51af8a083a4c91530f5a096f2571f9b07944a (patch)
treec3b399e31cc61e6705a2a5a9874a4a5eba1d222b
parent93637c89c8160d46178e36732a26b7e54f29a9d3 (diff)
Fix layout. Remove duplicate line
-rw-r--r--src/selectthunderbirdprofilewidget.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/selectthunderbirdprofilewidget.cpp b/src/selectthunderbirdprofilewidget.cpp
index 7c75b92..1237272 100644
--- a/src/selectthunderbirdprofilewidget.cpp
+++ b/src/selectthunderbirdprofilewidget.cpp
@@ -29,18 +29,18 @@ SelectThunderbirdProfileDialog::SelectThunderbirdProfileDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Select thunderbird profile"));
- QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
- QVBoxLayout *topLayout = new QVBoxLayout;
- setLayout(topLayout);
+ setModal(true);
+ QVBoxLayout *topLayout = new QVBoxLayout(this);
+
+ mSelectProfile = new SelectThunderbirdProfileWidget(this);
+ topLayout->addWidget(mSelectProfile);
+
+ QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
okButton->setDefault(true);
okButton->setShortcut(Qt::CTRL | Qt::Key_Return);
connect(buttonBox, &QDialogButtonBox::accepted, this, &SelectThunderbirdProfileDialog::accept);
connect(buttonBox, &QDialogButtonBox::rejected, this, &SelectThunderbirdProfileDialog::reject);
- okButton->setDefault(true);
- setModal(true);
- mSelectProfile = new SelectThunderbirdProfileWidget(this);
- topLayout->addWidget(mSelectProfile);
topLayout->addWidget(buttonBox);
}