1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-03 09:09:47 +02:00

Fix for bug 2011 - Label Editor

Linux: Audacity may stop responding to GUI after opening Label Editor
This commit is contained in:
Steve Daulton 2018-11-20 19:52:31 +00:00
parent 85af1b981a
commit 7c0d05fc18
2 changed files with 5 additions and 1 deletions

View File

@ -350,10 +350,12 @@ bool LabelDialog::Show(bool show)
{
bool ret = wxDialogWrapper::Show(show);
mGrid->SetFocus(); // Required (at least on Linux).
// Set initial row
// (This will not work until the grid is actually displayed)
if (show && mInitialRow != -1) {
mGrid->SetGridCursor(mInitialRow, Col_Label);
mGrid->GoToCell(mInitialRow, Col_Label);
}
return ret;

View File

@ -3073,6 +3073,8 @@ void LabelTrack::DoEditLabels
viewInfo, rate,
format, freqFormat);
dlg.Raise(); // Required on Linux: bug 2011
if (dlg.ShowModal() == wxID_OK) {
project.PushState(_("Edited labels"), _("Label"));
project.RedrawProject();