Fix crash

This commit is contained in:
2024-10-31 16:16:15 +01:00
parent 3112e16326
commit 34cb5776f6

View File

@@ -702,6 +702,10 @@ void MainWindow::redrawTaskTree()
{
QTreeWidget *l = ui->taskList;
uint16_t itemCount = l->topLevelItemCount();
if (itemCount == 0)
{
return;
}
for (int16_t i = itemCount; i >= 0; i--)
{
delete l->takeTopLevelItem(i);