mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-03 00:59:43 +02:00
Further changes for #964...
...batting 1000 tonight. grrrr
This commit is contained in:
parent
484e8c5014
commit
a584759f01
@ -1922,6 +1922,7 @@ int AudacityApp::OnExit()
|
||||
|
||||
mRecentFiles->Save(*gPrefs, wxT("RecentFiles"));
|
||||
delete mRecentFiles;
|
||||
mRecentFiles = NULL;
|
||||
|
||||
FinishPreferences();
|
||||
|
||||
|
@ -795,7 +795,8 @@ AudacityProject::AudacityProject(wxWindow * parent, wxWindowID id,
|
||||
mMenuClose(false),
|
||||
mShownOnce(false),
|
||||
mbInitializingScrollbar(false),
|
||||
mViewInfo(0.0, 1.0, ZoomInfo::GetDefaultZoom())
|
||||
mViewInfo(0.0, 1.0, ZoomInfo::GetDefaultZoom()),
|
||||
mIsBeingDeleted(false)
|
||||
{
|
||||
// Note that the first field of the status bar is a dummy, and it's width is set
|
||||
// to zero latter in the code. This field is needed for wxWidgets 2.8.12 because
|
||||
@ -1038,7 +1039,10 @@ AudacityProject::AudacityProject(wxWindow * parent, wxWindowID id,
|
||||
|
||||
AudacityProject::~AudacityProject()
|
||||
{
|
||||
wxGetApp().GetRecentFiles()->RemoveMenu(mRecentFilesMenu);
|
||||
if (wxGetApp().GetRecentFiles())
|
||||
{
|
||||
wxGetApp().GetRecentFiles()->RemoveMenu(mRecentFilesMenu);
|
||||
}
|
||||
|
||||
wxTheApp->Disconnect(EVT_AUDIOIO_CAPTURE,
|
||||
wxCommandEventHandler(AudacityProject::OnCapture),
|
||||
|
Loading…
x
Reference in New Issue
Block a user