Appearance: Only Select() if we are attached to a window.

Otherwise the appropriate message won't be sent.
AttachedToWindow() will take care of selecting
in that case.

Fixes #18891.
This commit is contained in:
Augustin Cavalier
2024-05-29 19:02:55 -04:00
parent bd25d788a2
commit fb79b8994f
+2 -1
View File
@@ -253,7 +253,8 @@ APRView::_CreateItems()
fAttrList->AddItem(new ColorWhichItem(text, which, ui_color(which)));
}
fAttrList->Select(0);
if (Window() != NULL)
fAttrList->Select(0);
}