Update OptionsAdvanced.cpp

This commit is contained in:
offhub 2024-03-06 22:21:00 +03:00
parent d9637d17eb
commit 72db04c12b
No known key found for this signature in database
GPG Key ID: 7B12A8941851DA59
1 changed files with 2 additions and 2 deletions

View File

@ -310,9 +310,9 @@ void COptionsWindow::ShowTriggersTmpl(bool bUpdate)
} }
else if (bUpdate) else if (bUpdate)
{ {
for (int i = 0; i < ui.treeRecovery->topLevelItemCount(); ) for (int i = 0; i < ui.treeTriggers->topLevelItemCount(); )
{ {
QTreeWidgetItem* pItem = ui.treeRecovery->topLevelItem(i); QTreeWidgetItem* pItem = ui.treeTriggers->topLevelItem(i);
int Type = pItem->data(0, Qt::UserRole).toInt(); int Type = pItem->data(0, Qt::UserRole).toInt();
if (Type == -1) { if (Type == -1) {
delete pItem; delete pItem;