Fixes #4946: Refresh rule category tree when refreshing rules
Merge pull request #536 from VinceMacBuche/bug_4946/RefreshRule_categoryTree

Fixes #4946: Refresh rule category tree when refreshing rules