mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-20 23:51:18 +01:00
Scriptable GetInfo crashes when Type is preferences.
This was caused by my commit: f9ee3cdc45
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:
@@ -165,9 +165,9 @@ void KeyConfigPrefs::PopulateOrExchange(ShuttleGui & S)
|
|||||||
if( mViewByKey ) mViewByKey->SetName(_("View by key"));
|
if( mViewByKey ) mViewByKey->SetName(_("View by key"));
|
||||||
#if wxUSE_ACCESSIBILITY
|
#if wxUSE_ACCESSIBILITY
|
||||||
// so that name can be set on a standard control
|
// so that name can be set on a standard control
|
||||||
mViewByTree->SetAccessible(safenew WindowAccessible(mViewByTree));
|
if (mViewByTree) mViewByTree->SetAccessible(safenew WindowAccessible(mViewByTree));
|
||||||
mViewByName->SetAccessible(safenew WindowAccessible(mViewByName));
|
if (mViewByName) mViewByName->SetAccessible(safenew WindowAccessible(mViewByName));
|
||||||
mViewByKey->SetAccessible(safenew WindowAccessible(mViewByKey));
|
if (mViewByKey) mViewByKey->SetAccessible(safenew WindowAccessible(mViewByKey));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
S.EndRadioButtonGroup();
|
S.EndRadioButtonGroup();
|
||||||
|
|||||||
Reference in New Issue
Block a user