From 4897c4256d99b7a54f7aefb671ee5816d2718e46 Mon Sep 17 00:00:00 2001 From: Daniel Teske Date: Tue, 26 Nov 2013 17:48:26 +0100 Subject: [PATCH] Options Dialog: Prevent ghost widget Change-Id: I06fc5820bffc47234b6b3b653b970ceac12640b1 Reviewed-by: Robert Loehning Reviewed-by: Eike Ziller --- src/plugins/coreplugin/dialogs/settingsdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/dialogs/settingsdialog.cpp b/src/plugins/coreplugin/dialogs/settingsdialog.cpp index 42fde01cea9..c265adbba3a 100644 --- a/src/plugins/coreplugin/dialogs/settingsdialog.cpp +++ b/src/plugins/coreplugin/dialogs/settingsdialog.cpp @@ -382,7 +382,7 @@ void SettingsDialog::createGui() headerHLayout->addWidget(m_headerLabel); m_stackedLayout->setMargin(0); - m_stackedLayout->addWidget(new QWidget); // no category selected, for example when filtering + m_stackedLayout->addWidget(new QWidget(this)); // no category selected, for example when filtering QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Apply |