Or the other VM Manager files.

This commit is contained in:
OBattler
2026-01-22 12:34:59 +01:00
parent 3faabe6197
commit 56bed942e7
2 changed files with 3 additions and 7 deletions

View File

@@ -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 &current,
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 &current,
// 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);

View File

@@ -30,8 +30,6 @@
// #include "qt_vmmanager_details_section.hpp"
#include "qt_vmmanager_detailsection.hpp"
#include "qt_defs.hpp"
#ifdef Q_OS_WINDOWS
# include <windows.h>
#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;