1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01: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;