Skip to content

Commit

Permalink
Fix comparision in VmListModel.java
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Fadeev <anton.fadeev@red-soft.ru>
  • Loading branch information
antonios-f authored and sandrobonazzola committed Apr 3, 2024
1 parent e66373a commit 943a244
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ private void confirmBiosTypeUpdate(){
BiosType newBiosType = model.getBiosType().getSelectedItem();
BiosType oldBiosType = vm.getBiosType();
if (oldBiosType.equals(BiosType.Q35_SECURE_BOOT) && !newBiosType.equals(BiosType.Q35_SECURE_BOOT) ||
oldBiosType.equals(BiosType.Q35_OVMF) && newBiosType.getValue() < BiosType.Q35_OVMF.getValue()) {
oldBiosType.isOvmf() && !newBiosType.isOvmf()) {
ConfirmationModel confirmModel = new ConfirmationModel();
confirmModel.setTitle(ConstantsManager.getInstance().getConstants().confirmBiosUpdateTitle());
confirmModel.setMessage(ConstantsManager.getInstance().getConstants().confirmBiosUpdateMessage());
Expand Down

0 comments on commit 943a244

Please sign in to comment.