From de6e65ffa361f7d123bd4c6fff8d8d501e276757 Mon Sep 17 00:00:00 2001 From: Leland Lucius Date: Thu, 18 Feb 2021 11:14:27 -0600 Subject: [PATCH] Remove some unneeded debugging --- src/ProjectFileManager.cpp | 1 - src/Screenshot.cpp | 10 ++++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/ProjectFileManager.cpp b/src/ProjectFileManager.cpp index ea0a4147c..941cf3aad 100644 --- a/src/ProjectFileManager.cpp +++ b/src/ProjectFileManager.cpp @@ -892,7 +892,6 @@ void ProjectFileManager::OpenFile(const FilePath &fileNameArg, bool addtohistory return; } -printf("fileexists %d\n", wxFileExists(fileName)); if (!::wxFileExists(fileName)) { AudacityMessageBox( XO("Could not open file: %s").Format( fileName ), diff --git a/src/Screenshot.cpp b/src/Screenshot.cpp index c95fba8b8..7de7693d9 100644 --- a/src/Screenshot.cpp +++ b/src/Screenshot.cpp @@ -654,6 +654,16 @@ void ScreenshotBigDialog::DoCapture(int captureMode) if (!mCommand->Apply(mContext)) mStatus->SetStatusText(_("Capture failed!"), mainStatusBarField); Show(); + + // Bug 2323: (100% hackage alert) Since the command target dialog is not + // accessible from outside the command, this is the only way we can get + // the window on top of this dialog. It also requires that the LongMessageDialog + // command target have the wxSTAY_ON_TOP flag + wxWindow *w = wxFindWindowByLabel(XO("Long Message").Translation()); + if (w) { + w->SetWindowStyle(w->GetWindowStyle() | wxSTAY_ON_TOP); + w->Raise(); + } } void ScreenshotBigDialog::OnCaptureSomething(wxCommandEvent & event)