mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-21 23:00:06 +02:00
Fix bug #1123
This commit is contained in:
parent
f08c5245f6
commit
f342ae8836
@ -298,6 +298,7 @@ END_EVENT_TABLE()
|
||||
Exporter::Exporter()
|
||||
{
|
||||
mMixerSpec = NULL;
|
||||
mBook = NULL;
|
||||
|
||||
SetFileDialogTitle( _("Export Audio") );
|
||||
|
||||
@ -902,7 +903,8 @@ void Exporter::OnFilterChanged(wxFileCtrlEvent & evt)
|
||||
{
|
||||
int index = evt.GetFilterIndex();
|
||||
|
||||
if (index < 0 || index >= (int) mBook->GetPageCount())
|
||||
// On GTK, this event can fire before the userpane is created
|
||||
if (mBook == NULL || index < 0 || index >= (int) mBook->GetPageCount())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user