bug 2011 - dlg.Raise() only required for GTK

This commit is contained in:
Steve Daulton 2018-11-26 21:06:19 +00:00
parent 40065d84ed
commit d26b17eea5
2 changed files with 4 additions and 3 deletions

View File

@ -350,7 +350,7 @@ bool LabelDialog::Show(bool show)
{
bool ret = wxDialogWrapper::Show(show);
mGrid->SetFocus(); // Required (at least on Linux).
mGrid->SetFocus(); // Required for Linux and Mac.
// Set initial row
// (This will not work until the grid is actually displayed)

View File

@ -3072,8 +3072,9 @@ void LabelTrack::DoEditLabels
lt, index,
viewInfo, rate,
format, freqFormat);
dlg.Raise(); // Required on Linux: bug 2011
#ifdef __WXGTK__
dlg.Raise();
#endif
if (dlg.ShowModal() == wxID_OK) {
project.PushState(_("Edited labels"), _("Label"));