Draft: Fix detection of screen profile after closing Preferences dialog
QApplication::activeWindow() is null for a small timeframe after closing the preferences dialog, so the profile was set to the default value (that, is "screen #0").
QApplication::activeWindow() is null for a small timeframe after closing the preferences dialog, so the profile was set to the default value (that, is "screen #0").