diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 72996b5e5..6f9aad239 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -705,6 +705,8 @@ void MainWindow::toggleVisibility(QSystemTrayIcon::ActivationReason e) { setWindowState(windowState() & ~Qt::WindowMinimized | Qt::WindowActive); // Then show it show(); + raise(); + activateWindow(); }else{ hide(); }