Skip to content

Commit

Permalink
Fix Mac OS Catalina subprograms crash
Browse files Browse the repository at this point in the history
Add resource cleanup to PaletteTreeWidget in addGroups()
Fixes Mac OS Catalina crash.
  • Loading branch information
georgiy-belyanin committed Mar 6, 2024
1 parent 066da16 commit e9bada0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qrgui/mainWindow/palette/paletteTreeWidget.cpp
Expand Up @@ -41,6 +41,8 @@ void PaletteTreeWidget::addGroups(QList<QPair<QString, QList<PaletteElement>>> &
, const QString &diagramFriendlyName
, bool sort)
{
qDeleteAll(mPaletteItems);
qDeleteAll(mPaletteElements);
mPaletteItems.clear();
mPaletteElements.clear();
mElementsSet.clear();
Expand Down

0 comments on commit e9bada0

Please sign in to comment.