Fix resolution selection dialog

No changelog entry as the causing commit for bug #21915 wasn't included in a release yet.