Skip to content

Commit

Permalink
Simplification of conditions
Browse files Browse the repository at this point in the history
Signed-off-by: Mochalin Nikolay <nikolay.mochalin@red-soft.ru>
  • Loading branch information
Mochalin Nikolay authored and antonios-f committed Mar 26, 2024
1 parent e9a1f3e commit eb7c064
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ private void edit() {
private void confirmBiosTypeUpdate(){
VM vm = getSelectedItem();
UnitVmModel model = (UnitVmModel) getWindow();
if (getSelectedItem() == null || ((UnitVmModel)getWindow()).getIsNew()) {
if (vm == null || model.getIsNew()) {
preSave();
} else {
BiosType newBiosType = model.getBiosType().getSelectedItem();
Expand Down

0 comments on commit eb7c064

Please sign in to comment.