From 822af3365b296a1acaa7d18686ddbe59a9ff5e6b Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Mon, 17 Apr 2017 17:41:34 -0700 Subject: [PATCH] always bring the results window to front when shown --- tools/oven/src/ui/OvenMainWindow.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/oven/src/ui/OvenMainWindow.cpp b/tools/oven/src/ui/OvenMainWindow.cpp index 1cf2986d17..1987bab660 100644 --- a/tools/oven/src/ui/OvenMainWindow.cpp +++ b/tools/oven/src/ui/OvenMainWindow.cpp @@ -41,11 +41,17 @@ ResultsWindow* OvenMainWindow::showResultsWindow() { if (!_resultsWindow) { // we don't have a results window right now, so make a new one _resultsWindow = new ResultsWindow; + + // even though we're about to show the results window, we do it here so that the move below works + _resultsWindow->show(); + + // place the results window initially below our window + _resultsWindow->move(_resultsWindow->x(), this->frameGeometry().bottom()); } - // show the results window, place it right below our window + // show the results window and make sure it is in front _resultsWindow->show(); - _resultsWindow->move(_resultsWindow->x(), this->frameGeometry().bottom()); + _resultsWindow->raise(); // return a pointer to the results window the caller can use return _resultsWindow;