Commit e42e3c49 authored by Laurent Montel's avatar Laurent Montel
Browse files

Make sure to not removing null action

parent f8ee1d0c
Pipeline #233143 passed with stage
in 7 minutes and 22 seconds
......@@ -143,7 +143,9 @@ public:
}
if (separatorAction) {
menu->removeAction(separatorAction);
menu->removeAction(downloadThemesAction);
if (downloadThemesAction) {
menu->removeAction(downloadThemesAction);
}
}
themesActionList.clear();
}
......@@ -191,7 +193,9 @@ public:
}
if (separatorAction) {
menu->addAction(separatorAction);
menu->addAction(downloadThemesAction);
if (downloadThemesAction) {
menu->addAction(downloadThemesAction);
}
}
}
......
Supports Markdown
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