settings.cc: set parent for network & software panel (#21197)

old-commit-hash: 9e0fb09f9b
This commit is contained in:
Dean Lee
2021-06-09 04:31:51 +08:00
committed by GitHub
parent 0421b1c244
commit d122a3a2ad
+2 -2
View File
@@ -304,7 +304,7 @@ QWidget * network_panel(QWidget * parent) {
layout->addStretch(1);
QWidget *w = new QWidget;
QWidget *w = new QWidget(parent);
w->setLayout(layout);
#else
Networking *w = new Networking(parent);
@@ -354,7 +354,7 @@ SettingsWindow::SettingsWindow(QWidget *parent) : QFrame(parent) {
{"Device", device},
{"Network", network_panel(this)},
{"Toggles", new TogglesPanel(this)},
{"Software", new SoftwarePanel()},
{"Software", new SoftwarePanel(this)},
};
sidebar_layout->addSpacing(45);