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:
parent
85af1b981a
commit
7c0d05fc18
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user