From 56bed942e7a0477f18ddae3912b3b33853c32b3f Mon Sep 17 00:00:00 2001 From: OBattler Date: Thu, 22 Jan 2026 12:34:59 +0100 Subject: [PATCH] Or the other VM Manager files. --- src/qt/qt_vmmanager_main.cpp | 6 ++---- src/qt/qt_vmmanager_system.cpp | 4 +--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/qt/qt_vmmanager_main.cpp b/src/qt/qt_vmmanager_main.cpp index c0b4deab3..317bd0f2b 100644 --- a/src/qt/qt_vmmanager_main.cpp +++ b/src/qt/qt_vmmanager_main.cpp @@ -34,8 +34,6 @@ #include "qt_vmmanager_model.hpp" #include "qt_vmmanager_addmachine.hpp" -#include "qt_defs.hpp" - extern VMManagerMainWindow *vmm_main_window; // https://stackoverflow.com/a/36460740 @@ -517,7 +515,7 @@ VMManagerMain::currentSelectionChanged(const QModelIndex ¤t, if (!current.isValid()) return; - disconnect(selected_sysconfig->process, &QProcess::CHECK_STATE_CHANGED, this, &VMManagerMain::vmStateChange); + disconnect(selected_sysconfig->process, &QProcess::stateChanged, this, &VMManagerMain::vmStateChange); disconnect(selected_sysconfig, &VMManagerSystem::windowStatusChanged, this, &VMManagerMain::vmStateChange); disconnect(selected_sysconfig, &VMManagerSystem::clientProcessStatusChanged, this, &VMManagerMain::vmStateChange); @@ -528,7 +526,7 @@ VMManagerMain::currentSelectionChanged(const QModelIndex ¤t, // Emit that the selection changed, include with the process state emit selectionOrStateChanged(selected_sysconfig); - connect(selected_sysconfig->process, &QProcess::CHECK_STATE_CHANGED, this, &VMManagerMain::vmStateChange); + connect(selected_sysconfig->process, &QProcess::stateChanged, this, &VMManagerMain::vmStateChange); connect(selected_sysconfig, &VMManagerSystem::windowStatusChanged, this, &VMManagerMain::vmStateChange); connect(selected_sysconfig, &VMManagerSystem::clientProcessStatusChanged, this, &VMManagerMain::vmStateChange); diff --git a/src/qt/qt_vmmanager_system.cpp b/src/qt/qt_vmmanager_system.cpp index 9d5058951..eb91ef220 100644 --- a/src/qt/qt_vmmanager_system.cpp +++ b/src/qt/qt_vmmanager_system.cpp @@ -30,8 +30,6 @@ // #include "qt_vmmanager_details_section.hpp" #include "qt_vmmanager_detailsection.hpp" -#include "qt_defs.hpp" - #ifdef Q_OS_WINDOWS # include #endif @@ -103,7 +101,7 @@ VMManagerSystem::VMManagerSystem(const QString &sysconfig_file) find86BoxBinary(); platform = QApplication::platformName(); process = new QProcess(); - connect(process, &QProcess::CHECK_STATE_CHANGED, this, &VMManagerSystem::processStatusChanged); + connect(process, &QProcess::stateChanged, this, &VMManagerSystem::processStatusChanged); // Server type for this instance (Standard should always be used instead of Legacy) socket_server_type = VMManagerServerSocket::ServerType::Standard;