mirror of
https://github.com/altlinux/admc.git
synced 2025-01-23 10:03:44 +03:00
Removed memory leaks from OU's inheritance widget
This commit is contained in:
parent
fbdb9bd19b
commit
2f19d330c7
@ -109,14 +109,17 @@ void InheritedPoliciesWidget::add_enabled_policy_items(const QModelIndex &index,
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool policy_is_enforced = enforced_links.contains(gpo_dn);
|
bool policy_is_enforced = enforced_links.contains(gpo_dn);
|
||||||
const QList<QStandardItem *> row = make_item_row(InheritedPoliciesColumns_COUNT);
|
QList<QStandardItem *> row;
|
||||||
load_item(row, index, gpo_dn, policy_is_enforced);
|
|
||||||
|
|
||||||
if (policy_is_enforced) {
|
if (policy_is_enforced) {
|
||||||
|
row = make_item_row(InheritedPoliciesColumns_COUNT);
|
||||||
|
load_item(row, index, gpo_dn, policy_is_enforced);
|
||||||
model->insertRow(row_number, row);
|
model->insertRow(row_number, row);
|
||||||
++row_number;
|
++row_number;
|
||||||
}
|
}
|
||||||
else if (index == selected_scope_index || !inheritance_blocked) {
|
else if (index == selected_scope_index || !inheritance_blocked) {
|
||||||
|
row = make_item_row(InheritedPoliciesColumns_COUNT);
|
||||||
|
load_item(row, index, gpo_dn, policy_is_enforced);
|
||||||
model->appendRow(row);
|
model->appendRow(row);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user