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 9, 2024
1 parent 066da16 commit bfaf7ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions qrgui/mainWindow/palette/paletteTreeWidget.cpp
Original file line number Diff line number Diff line change
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
2 changes: 1 addition & 1 deletion qrtranslations/fr/qrgui_mainWindow_fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ WARNING: The settings will be restored after application restart</source>
<translation type="obsolete">Ajouter un élément</translation>
</message>
<message>
<location filename="../../qrgui/mainWindow/palette/paletteTreeWidget.cpp" line="+143"/>
<location filename="../../qrgui/mainWindow/palette/paletteTreeWidget.cpp" line="+145"/>
<source>Add Entity</source>
<translation type="unfinished"></translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion qrtranslations/ru/qrgui_mainWindow_ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1250,7 +1250,7 @@ WARNING: The settings will be restored after application restart</source>
<translation type="obsolete">Добавить элемент</translation>
</message>
<message>
<location filename="../../qrgui/mainWindow/palette/paletteTreeWidget.cpp" line="+143"/>
<location filename="../../qrgui/mainWindow/palette/paletteTreeWidget.cpp" line="+145"/>
<source>Add Entity</source>
<translation>Добавить сущность</translation>
</message>
Expand Down

0 comments on commit bfaf7ec

Please sign in to comment.