Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 9a957c3b authored by Elvis Angelaccio's avatar Elvis Angelaccio

Don't add null widget to layout

m_expandableFolders is created only in DetailsMode. This fixes a QLayout
runtime warning.
parent 9f86b5a2
......@@ -133,7 +133,9 @@ ViewSettingsTab::ViewSettingsTab(Mode mode, QWidget* parent) :
topLayout->addWidget(iconSizeGroup);
topLayout->addWidget(textGroup);
topLayout->addWidget(m_expandableFolders);
if (m_expandableFolders) {
topLayout->addWidget(m_expandableFolders);
}
topLayout->addStretch(1);
loadSettings();
......
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