Post #2555634
2026-03-06 17:26 UTC
@jscholes@dragonscave.space Seemingly the merging of my dark mode PR made this bug surface, but I'll just let this diff speak for itself. diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp
index 435e7aae6f0c..3c6bb349cd8c 100644
--- a/src/common/wincmn.cpp
+++ b/src/common/wincmn.cpp
@@ -3887,15 +3887,7 @@ wxAccStatus wxWindowAccessible::GetName(int childId, wxString* name)
if (childId > 0)
return wxACC_NOT_IMPLEMENTED;
- // This will eventually be replaced by specialised
- // accessible classes, one for each kind of wxWidgets
- // control or window.
-#if wxUSE_BUTTON
- if (wxDynamicCast(GetWindow(), wxButton))
- title = ((wxButton*) GetWindow())->GetLabel();
- else
-#endif
- title = GetWindow()->GetName();
+ title = GetWindow()->GetLabel();
if (!title.empty())
{
Replies (0)
No replies.