Merge pull request #3927

ab1edd4 [Qt] Fix enable/disable show and remove buttons (Cozz Lovan)
[Qt] optionally show debug window as main tab