mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-17 14:43:55 +01:00
Fix for bug 2230 - Audacity crashes on selecting Resample
See https://bugzilla.audacityteam.org/show_bug.cgi?id=2230
This commit is contained in:
@@ -694,7 +694,6 @@ void OnResample(const CommandContext &context)
|
|||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
wxDialogWrapper dlg(&window, wxID_ANY, wxString(_("Resample")));
|
wxDialogWrapper dlg(&window, wxID_ANY, wxString(_("Resample")));
|
||||||
dlg.SetName(dlg.GetTitle());
|
|
||||||
ShuttleGui S(&dlg, eIsCreating);
|
ShuttleGui S(&dlg, eIsCreating);
|
||||||
wxString rate;
|
wxString rate;
|
||||||
wxComboBox *cb;
|
wxComboBox *cb;
|
||||||
@@ -782,7 +781,7 @@ void OnResample(const CommandContext &context)
|
|||||||
}
|
}
|
||||||
|
|
||||||
undoManager.StopConsolidating();
|
undoManager.StopConsolidating();
|
||||||
|
|
||||||
// Need to reset
|
// Need to reset
|
||||||
window.FinishAutoScroll();
|
window.FinishAutoScroll();
|
||||||
}
|
}
|
||||||
@@ -1251,7 +1250,7 @@ MenuTable::BaseItemPtr TracksMenu( AudacityProject & )
|
|||||||
// Tracks Menu (formerly Project Menu)
|
// Tracks Menu (formerly Project Menu)
|
||||||
using namespace MenuTable;
|
using namespace MenuTable;
|
||||||
using Options = CommandManager::Options;
|
using Options = CommandManager::Options;
|
||||||
|
|
||||||
return Menu( _("&Tracks"),
|
return Menu( _("&Tracks"),
|
||||||
Menu( _("Add &New"),
|
Menu( _("Add &New"),
|
||||||
Command( wxT("NewMonoTrack"), XXO("&Mono Track"), FN(OnNewWaveTrack),
|
Command( wxT("NewMonoTrack"), XXO("&Mono Track"), FN(OnNewWaveTrack),
|
||||||
|
|||||||
Reference in New Issue
Block a user