mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-10 08:33:36 +02:00
Further changes for #964...
...batting 1000 tonight. grrrr
This commit is contained in:
@@ -1922,6 +1922,7 @@ int AudacityApp::OnExit()
|
|||||||
|
|
||||||
mRecentFiles->Save(*gPrefs, wxT("RecentFiles"));
|
mRecentFiles->Save(*gPrefs, wxT("RecentFiles"));
|
||||||
delete mRecentFiles;
|
delete mRecentFiles;
|
||||||
|
mRecentFiles = NULL;
|
||||||
|
|
||||||
FinishPreferences();
|
FinishPreferences();
|
||||||
|
|
||||||
|
@@ -795,7 +795,8 @@ AudacityProject::AudacityProject(wxWindow * parent, wxWindowID id,
|
|||||||
mMenuClose(false),
|
mMenuClose(false),
|
||||||
mShownOnce(false),
|
mShownOnce(false),
|
||||||
mbInitializingScrollbar(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
|
// 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
|
// 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()
|
AudacityProject::~AudacityProject()
|
||||||
{
|
{
|
||||||
wxGetApp().GetRecentFiles()->RemoveMenu(mRecentFilesMenu);
|
if (wxGetApp().GetRecentFiles())
|
||||||
|
{
|
||||||
|
wxGetApp().GetRecentFiles()->RemoveMenu(mRecentFilesMenu);
|
||||||
|
}
|
||||||
|
|
||||||
wxTheApp->Disconnect(EVT_AUDIOIO_CAPTURE,
|
wxTheApp->Disconnect(EVT_AUDIOIO_CAPTURE,
|
||||||
wxCommandEventHandler(AudacityProject::OnCapture),
|
wxCommandEventHandler(AudacityProject::OnCapture),
|
||||||
|
Reference in New Issue
Block a user