[ros-diffs] [weiden] 30644: Only update the UI state if the dialog is a top level window. If it is a client window (e.g. a property sheet or embedded dialog) we simply copy the UI state from the parent.