Debugger: Replace a few mainwindow uses with dialogparent

Change-Id: Ie755f7c2716aeee83c0e4a653db25fb46403a16b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>