Skip to content

Commit d5f71c0

Browse files
committed
Fix the edit VM bug
1 parent e4a4b87 commit d5f71c0

File tree

6 files changed

+1382
-1361
lines changed

6 files changed

+1382
-1361
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Ubuntu 20.04 LTS and derivates will be no longer supported as EmuGUI hosts from
77
## Changes compared to v1.1.0.5408
88

99
- The Tab order has been corrected in the Main and New VM UIs.
10+
- A critical bug which ruined edited VMs has been fixed.
1011

1112
# EmuGUI v1.1.0.5408 "Sara Angeline" (based on v1.1.0.5407_b2)
1213

141 Bytes
Binary file not shown.

dialogExecution/editVMNew.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ def connectSignalsSlots(self):
5454
self.pushButton_4.clicked.connect(self.extBiosFileLocation)
5555
self.pushButton_5.clicked.connect(self.linuxKernelBrowseLocation)
5656
self.pushButton_6.clicked.connect(self.linuxInitridBrowseLocation)
57+
58+
# For new and existing
59+
self.lineEdit_2.setEnabled(True)
60+
self.pushButton_3.setEnabled(True)
61+
62+
# For new
63+
self.comboBox_3.setEnabled(False)
64+
self.spinBox.setEnabled(False)
65+
self.comboBox_4.setEnabled(False)
5766

5867
def langDetect(self):
5968
select_language = """
@@ -584,6 +593,10 @@ def readTempVmFile(self):
584593
self.comboBox_7.setCurrentIndex(i)
585594
break
586595

596+
elif self.comboBox_7.itemText(i) == vmSpecs[6]:
597+
self.comboBox_7.setCurrentIndex(i)
598+
break
599+
587600
i += 1
588601

589602
i = 0

ui/EditVM.ui

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2280,6 +2280,11 @@
22802280
</item>
22812281
<item row="0" column="1">
22822282
<widget class="QComboBox" name="comboBox_7">
2283+
<item>
2284+
<property name="text">
2285+
<string>Let QEMU decide</string>
2286+
</property>
2287+
</item>
22832288
<item>
22842289
<property name="text">
22852290
<string>none</string>
59 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)