Skip to content

Commit

Permalink
Fixed UI exception.
Browse files Browse the repository at this point in the history
Which raised when querying nonexistent widget.
  • Loading branch information
mchf committed May 12, 2016
1 parent 333e4af commit ab2e93e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/include/network/lan/hardware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ def handleHW(_key, event)
end

def devname_from_hw_dialog
UI.QueryWidget(Id(:ifcfg_name), :Value)
UI.QueryWidget(Id(:ifcfg_name), :Value) if UI.WidgetExists(Id(:ifcfg_name))
end

def validate_hw(_key, _event)
Expand Down

0 comments on commit ab2e93e

Please sign in to comment.