1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-22 00:47:13 +01:00

bug 330 (P2) followup - make warning work with minimized windows by bringing them back to the foreground and raising them.

This commit is contained in:
mchinen
2011-04-02 11:06:01 +00:00
parent 8069a092f5
commit 7d40ba6792

View File

@@ -818,6 +818,9 @@ void AudacityApp::OnTimer(wxTimerEvent& event)
if (GetMissingAliasFileDialog()) { if (GetMissingAliasFileDialog()) {
// if it is already shown, just bring it to the front instead of // if it is already shown, just bring it to the front instead of
// creating a new one. // creating a new one.
// Also ensure the parent is behind it.
((wxTopLevelWindow*)GetMissingAliasFileDialog()->GetParent())->Iconize(false);
GetMissingAliasFileDialog()->GetParent()->Raise();
GetMissingAliasFileDialog()->Raise(); GetMissingAliasFileDialog()->Raise();
} else { } else {
wxString errorMessage = _( 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 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"), ShowAliasMissingDialog(offendingProject, _("Files Missing"),
errorMessage, wxT(""), true); errorMessage, wxT(""), true);
}
// Only show this warning once per playback. // Only show this warning once per playback.
} }
SetMissingAliasedFileWarningShouldShow(false); SetMissingAliasedFileWarningShouldShow(false);