1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-21 16:37:12 +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 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);