mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +02:00
Scriptable GetInfo crashes when Type is preferences.
This was caused by my commit: f9ee3cdc45ab3c5530505daa119ef01ccfdcc262 When void KeyConfigPrefs::PopulateOrExchange(ShuttleGui & S) is called for the purposes of GetInfo, the pointers to the radio buttons are null, so need to check for this before calls to SetAccessible.
This commit is contained in:
parent
d09987da9c
commit
a771faa492
@ -165,9 +165,9 @@ void KeyConfigPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
if( mViewByKey ) mViewByKey->SetName(_("View by key"));
|
||||
#if wxUSE_ACCESSIBILITY
|
||||
// so that name can be set on a standard control
|
||||
mViewByTree->SetAccessible(safenew WindowAccessible(mViewByTree));
|
||||
mViewByName->SetAccessible(safenew WindowAccessible(mViewByName));
|
||||
mViewByKey->SetAccessible(safenew WindowAccessible(mViewByKey));
|
||||
if (mViewByTree) mViewByTree->SetAccessible(safenew WindowAccessible(mViewByTree));
|
||||
if (mViewByName) mViewByName->SetAccessible(safenew WindowAccessible(mViewByName));
|
||||
if (mViewByKey) mViewByKey->SetAccessible(safenew WindowAccessible(mViewByKey));
|
||||
#endif
|
||||
}
|
||||
S.EndRadioButtonGroup();
|
||||
|
Loading…
x
Reference in New Issue
Block a user