ui/settingswindow: set parent for nav_btns. (#22984)

old-commit-hash: b399b48f0a32e17a111571d8b1d6ccef52432e1c
This commit is contained in:
Dean Lee
2021-11-20 12:40:46 +08:00
committed by GitHub
parent 3492b1290f
commit 05b2ff7f26

View File

@@ -377,7 +377,7 @@ SettingsWindow::SettingsWindow(QWidget *parent) : QFrame(parent) {
const int padding = panels.size() > 3 ? 25 : 35;
nav_btns = new QButtonGroup();
nav_btns = new QButtonGroup(this);
for (auto &[name, panel] : panels) {
QPushButton *btn = new QPushButton(name);
btn->setCheckable(true);