Skip to content

Commit

Permalink
FancyMenu: fix crash for good
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgit committed Jan 7, 2024
1 parent eb37c9b commit 192b005
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin-fancymenu/lxqtfancymenuappmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ void LXQtFancyMenuAppMap::clear()

void LXQtFancyMenuAppMap::clearFavorites()
{
Category favoritesCat = mCategories[0];
qDeleteAll(favoritesCat.apps);
favoritesCat.apps.clear();
Category& favoritesCatRef = mCategories[0];
qDeleteAll(favoritesCatRef.apps);
favoritesCatRef.apps.clear();
}

bool LXQtFancyMenuAppMap::rebuildModel(const XdgMenu &menu)
Expand Down

0 comments on commit 192b005

Please sign in to comment.