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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user