Qt UI: Fix ...

* Double initialization menu widget.
* Small memory leak when creating a menu widget.
Merge branch 'temp' into 2.2.x