...
Simplify code to show GUI debug log

Fixes regression caused by Qt 5 behavior change that prevented the
debug log from being displayed in linux.
Workaround for bug in Qt 5 that causes crashes if QDesktopServices is used before constructing a QApplication