1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-22 07:10:06 +02:00
This commit is contained in:
Leland Lucius 2015-08-09 21:35:14 -05:00
parent f08c5245f6
commit f342ae8836

View File

@ -298,6 +298,7 @@ END_EVENT_TABLE()
Exporter::Exporter() Exporter::Exporter()
{ {
mMixerSpec = NULL; mMixerSpec = NULL;
mBook = NULL;
SetFileDialogTitle( _("Export Audio") ); SetFileDialogTitle( _("Export Audio") );
@ -902,7 +903,8 @@ void Exporter::OnFilterChanged(wxFileCtrlEvent & evt)
{ {
int index = evt.GetFilterIndex(); 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; return;
} }