diff --git a/kemu/kemu.ui b/kemu/kemu.ui
index 04d21d87..736e7fd2 100644
--- a/kemu/kemu.ui
+++ b/kemu/kemu.ui
@@ -83,20 +83,20 @@
- -
-
+
-
+
- CD-ROM image
+ Hard Disk image
-
- -
-
+
-
+
- Hard Drive image
+ CD-ROM image
@@ -173,9 +173,6 @@
- -
-
-
-
@@ -186,7 +183,10 @@
- -
+
-
+
+
+ -
Qt::Vertical
@@ -199,7 +199,14 @@
- -
+
-
+
+
+ 1
+
+
+
+ -
Extra arguments
@@ -213,10 +220,10 @@
- -
-
-
- 1
+
-
+
+
+ Advanced Configuration and Power Interface
diff --git a/kemu/kemumainwindow.cpp b/kemu/kemumainwindow.cpp
index d8eb5c4d..2d23b103 100644
--- a/kemu/kemumainwindow.cpp
+++ b/kemu/kemumainwindow.cpp
@@ -130,6 +130,7 @@ KEmuMainWindow::KEmuMainWindow(QWidget *parent, Qt::WindowFlags flags)
connect(m_kemuui->RAMInput, SIGNAL(valueChanged(int)), this, SLOT(machineSave(int)));
connect(m_kemuui->CPUInput, SIGNAL(valueChanged(int)), this, SLOT(machineSave(int)));
connect(m_kemuui->KVMCheckBox, SIGNAL(stateChanged(int)), this, SLOT(machineSave(int)));
+ connect(m_kemuui->ACPICheckBox, SIGNAL(stateChanged(int)), this, SLOT(machineSave(int)));
connect(m_kemuui->argumentsLineEdit, SIGNAL(textChanged(QString)), this, SLOT(machineSave(QString)));
}
@@ -197,6 +198,7 @@ void KEmuMainWindow::machineSave(const QString ignored)
m_settings->setValue(machine + "/ram", m_kemuui->RAMInput->value());
m_settings->setValue(machine + "/cpu", m_kemuui->CPUInput->value());
m_settings->setValue(machine + "/kvm", m_kemuui->KVMCheckBox->isChecked());
+ m_settings->setValue(machine + "/acpi", m_kemuui->ACPICheckBox->isChecked());
m_settings->setValue(machine + "/args", m_kemuui->argumentsLineEdit->text());
m_settings->sync();
}
@@ -222,6 +224,7 @@ void KEmuMainWindow::machineLoad(const QString machine)
m_kemuui->RAMInput->setValue(m_settings->value(machine + "/ram", 32).toInt());
m_kemuui->CPUInput->setValue(m_settings->value(machine + "/cpu", 1).toInt());
m_kemuui->KVMCheckBox->setChecked(m_settings->value(machine + "/kvm", false).toBool());
+ m_kemuui->ACPICheckBox->setChecked(m_settings->value(machine + "/acpi", false).toBool());
m_kemuui->argumentsLineEdit->setText(m_settings->value(machine + "/args").toString());
}
@@ -309,6 +312,9 @@ void KEmuMainWindow::startStopMachine()
if (m_kemuui->KVMCheckBox->isChecked()) {
machineArgs << "-enable-kvm";
}
+ if (!m_kemuui->ACPICheckBox->isChecked()) {
+ machineArgs << "-no-acpi";
+ }
const QString extraArgs = m_kemuui->argumentsLineEdit->text();
if (!extraArgs.isEmpty()) {
foreach (const QString argument, extraArgs.split(" ")) {