Commit 5d5d6873 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix load menu

parent d8d28306
Pipeline #63340 passed with stage
in 40 minutes and 17 seconds
......@@ -27,9 +27,16 @@ FilterSavedMenu::~FilterSavedMenu()
void FilterSavedMenu::slotShowMenu()
{
for (auto act : qAsConst(mListAction)) {
removeAction(act);
}
qDeleteAll(mListAction);
mListAction.clear();
removeAction(mSaveAction);
removeAction(mConfigureAction);
clear();
FilterSavedManager::self()->loadMenu(this);
if (isEmpty()) {
if (!isEmpty()) {
addSeparator();
}
addAction(mSaveAction);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment