1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-10 08:33:36 +02:00

fix for bug 307

This commit is contained in:
v.audacity
2013-07-25 05:12:15 +00:00
parent 9ac2623b7d
commit bbdb415a82

View File

@@ -4691,6 +4691,17 @@ void AudacityProject::OnImport()
// this serves to track the file if the users zooms in and such.
wxGetApp().SetMissingAliasedFileWarningShouldShow(true);
// bug 307 fix:
// Apparently the shift key-up event gets swallowed by the file open dialog.
// The default shortcut for this command it Ctrl+Shift+I,
// so make sure the loop play button is reset.
if (GetControlToolBar())
{
wxKeyEvent dummyEvent;
dummyEvent.m_keyCode = WXK_SHIFT;
GetControlToolBar()->OnKeyUp(dummyEvent);
}
wxArrayString selectedFiles = ShowOpenDialog(wxT(""));
if (selectedFiles.GetCount() == 0) {
gPrefs->Write(wxT("/LastOpenType"),wxT(""));