Changes the logic of WindowManager::messageBox()