mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-11 16:02:11 +08:00
settings.cc: set parent for network & software panel (#21197)
old-commit-hash: 9e0fb09f9b
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user