Fix crash on add/edit tags

This commit is contained in:
ZeldaZach 2025-01-16 00:54:34 -05:00
parent 55f624b634
commit 315c224f24
No known key found for this signature in database

View file

@ -102,8 +102,8 @@ void FlowWidget::clearLayout()
if (flowLayout != nullptr) {
QLayoutItem *item;
while ((item = flowLayout->takeAt(0)) != nullptr) {
delete item->widget(); // Delete the widget
delete item; // Delete the layout item
item->widget()->deleteLater(); // Delete the widget
delete item; // Delete the layout item
}
} else {
if (scrollArea->horizontalScrollBarPolicy() != Qt::ScrollBarAlwaysOff &&