mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-13 20:07:07 +02:00
always bring the results window to front when shown
This commit is contained in:
parent
95e2cc4eea
commit
822af3365b
1 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue