mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-01 12:32:48 +00:00
DolphinQt/Mapping: Explicitly specify parents of conditionally added widgets to prevent memory leaks.
This commit is contained in:
parent
fa8cbd83e2
commit
40d15980c5
@ -229,8 +229,8 @@ void IOWindow::CreateMainLayout()
|
|||||||
m_devices_combo = new QComboBox();
|
m_devices_combo = new QComboBox();
|
||||||
m_option_list = new QTableWidget();
|
m_option_list = new QTableWidget();
|
||||||
m_select_button = new QPushButton(tr("Select"));
|
m_select_button = new QPushButton(tr("Select"));
|
||||||
m_detect_button = new QPushButton(tr("Detect"));
|
m_detect_button = new QPushButton(tr("Detect"), this);
|
||||||
m_test_button = new QPushButton(tr("Test"));
|
m_test_button = new QPushButton(tr("Test"), this);
|
||||||
m_button_box = new QDialogButtonBox();
|
m_button_box = new QDialogButtonBox();
|
||||||
m_clear_button = new QPushButton(tr("Clear"));
|
m_clear_button = new QPushButton(tr("Clear"));
|
||||||
m_apply_button = new QPushButton(tr("Apply"));
|
m_apply_button = new QPushButton(tr("Apply"));
|
||||||
@ -265,7 +265,7 @@ void IOWindow::CreateMainLayout()
|
|||||||
m_operators_combo->addItem(tr(", Comma"));
|
m_operators_combo->addItem(tr(", Comma"));
|
||||||
}
|
}
|
||||||
|
|
||||||
m_functions_combo = new QComboBox();
|
m_functions_combo = new QComboBox(this);
|
||||||
m_functions_combo->addItem(tr("Functions"));
|
m_functions_combo->addItem(tr("Functions"));
|
||||||
m_functions_combo->insertSeparator(1);
|
m_functions_combo->insertSeparator(1);
|
||||||
m_functions_combo->addItem(QStringLiteral("if"));
|
m_functions_combo->addItem(QStringLiteral("if"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user