Fix a warning in the VFIO code and attempt to use checkStateChanged instead of stateChanged when compiling with Qt 6.

This commit is contained in:
OBattler
2026-01-22 12:31:02 +01:00
parent 7a462af5d1
commit 57af22f32f
6 changed files with 18 additions and 9 deletions

View File

@@ -30,6 +30,8 @@
// #include "qt_vmmanager_details_section.hpp"
#include "qt_vmmanager_detailsection.hpp"
#include "qt_defs.hpp"
#ifdef Q_OS_WINDOWS
# include <windows.h>
#endif
@@ -101,7 +103,7 @@ VMManagerSystem::VMManagerSystem(const QString &sysconfig_file)
find86BoxBinary();
platform = QApplication::platformName();
process = new QProcess();
connect(process, &QProcess::stateChanged, this, &VMManagerSystem::processStatusChanged);
connect(process, &QProcess::CHECK_STATE_CHANGED, this, &VMManagerSystem::processStatusChanged);
// Server type for this instance (Standard should always be used instead of Legacy)
socket_server_type = VMManagerServerSocket::ServerType::Standard;