always bring the results window to front when shown

This commit is contained in:
Stephen Birarda 2017-04-17 17:41:34 -07:00
parent 95e2cc4eea
commit 822af3365b

View file

@ -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;