┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElvis Angelaccio <[email protected]>2017-07-21 12:09:17 +0200
committerElvis Angelaccio <[email protected]>2017-07-21 12:09:17 +0200
commit9f86b5a266ff546ae4962a1e1e95a5a444d868e8 (patch)
treef7f05c81e253efdc5f27c4b53ac92538e89e5836
parentfccb89fc5c7adbf5c541eefd46dfa2ebae3a9cc9 (diff)
Fix layout warning
This fixes the following warning: QLayout: Attempting to add QLayout "" to PreviewsSettingsPage "", which already has a layout `topLayout->addLayout(fileSizeBoxLayout)` takes ownership of `fileSizeBoxLayout`, so there is no reason to use `this` as parent.
-rw-r--r--src/settings/general/previewssettingspage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings/general/previewssettingspage.cpp b/src/settings/general/previewssettingspage.cpp
index f01d220dd..1a92cd16c 100644
--- a/src/settings/general/previewssettingspage.cpp
+++ b/src/settings/general/previewssettingspage.cpp
@@ -81,7 +81,7 @@ PreviewsSettingsPage::PreviewsSettingsPage(QWidget* parent) :
m_remoteFileSizeBox->setSuffix(QStringLiteral(" MB"));
m_remoteFileSizeBox->setRange(0, 9999999); /* MB */
- QHBoxLayout* fileSizeBoxLayout = new QHBoxLayout(this);
+ QHBoxLayout* fileSizeBoxLayout = new QHBoxLayout();
fileSizeBoxLayout->addWidget(remoteFileSizeLabel, 0, Qt::AlignRight);
fileSizeBoxLayout->addWidget(m_remoteFileSizeBox);