From c638beaddb94683bd92c2fbec09870b28af5f3d0 Mon Sep 17 00:00:00 2001
From: f4exb <f4exb06@gmail.com>
Date: Mon, 18 Apr 2022 10:21:47 +0200
Subject: [PATCH] Massive UI revamping (v7): raise windows on the 'show'
 commands so that they will also be put on top

---
 sdrgui/mainwindow.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sdrgui/mainwindow.cpp b/sdrgui/mainwindow.cpp
index a6c504b53..16057c890 100644
--- a/sdrgui/mainwindow.cpp
+++ b/sdrgui/mainwindow.cpp
@@ -2544,14 +2544,17 @@ void MainWindow::mainSpectrumMove(MainSpectrumGUI *gui, int wsIndexDestnation)
 void MainWindow::mainSpectrumShow(MainSpectrumGUI *gui)
 {
     gui->show();
+    gui->raise();
 }
 
 void MainWindow::showAllChannels(int deviceSetIndex)
 {
     DeviceUISet *deviceUISet = m_deviceUIs[deviceSetIndex];
 
-    for (int i = 0; i < deviceUISet->getNumberOfChannels(); i++) {
+    for (int i = 0; i < deviceUISet->getNumberOfChannels(); i++)
+    {
         deviceUISet->getChannelGUIAt(i)->show();
+        deviceUISet->getChannelGUIAt(i)->raise();
     }
 }