From 7d40ba6792b326173b7524fc09412ab5684f5c3e Mon Sep 17 00:00:00 2001 From: mchinen Date: Sat, 2 Apr 2011 11:06:01 +0000 Subject: [PATCH] bug 330 (P2) followup - make warning work with minimized windows by bringing them back to the foreground and raising them. --- src/AudacityApp.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/AudacityApp.cpp b/src/AudacityApp.cpp index 3fe32fb09..e3a921232 100644 --- a/src/AudacityApp.cpp +++ b/src/AudacityApp.cpp @@ -818,6 +818,9 @@ void AudacityApp::OnTimer(wxTimerEvent& event) if (GetMissingAliasFileDialog()) { // if it is already shown, just bring it to the front instead of // creating a new one. + // Also ensure the parent is behind it. + ((wxTopLevelWindow*)GetMissingAliasFileDialog()->GetParent())->Iconize(false); + GetMissingAliasFileDialog()->GetParent()->Raise(); GetMissingAliasFileDialog()->Raise(); } else { wxString errorMessage = _( @@ -850,9 +853,12 @@ original location of the missing files."); } // if there are no projects open, don't show the warning (user has closed it) - if (offendingProject) + if (offendingProject) { + offendingProject->Iconize(false); + offendingProject->Raise(); ShowAliasMissingDialog(offendingProject, _("Files Missing"), errorMessage, wxT(""), true); + } // Only show this warning once per playback. } SetMissingAliasedFileWarningShouldShow(false);