addhardware: Remove unused is_customize_dialog

This commit is contained in:
Cole Robinson 2019-05-08 16:50:08 -04:00
parent 472cfbc2a7
commit a54b83072a
2 changed files with 2 additions and 3 deletions

View File

@ -64,12 +64,11 @@ def _build_combo(combo, values, default_value=None, sort=True):
class vmmAddHardware(vmmGObjectUI):
def __init__(self, vm, is_customize_dialog):
def __init__(self, vm):
vmmGObjectUI.__init__(self, "addhardware.ui", "vmm-add-hardware")
self.vm = vm
self.conn = vm.conn
self.is_customize_dialog = is_customize_dialog
self._storagebrowser = None

View File

@ -1047,7 +1047,7 @@ class vmmDetails(vmmGObjectUI):
def add_hardware(self, src_ignore):
try:
if self.addhw is None:
self.addhw = vmmAddHardware(self.vm, self.is_customize_dialog)
self.addhw = vmmAddHardware(self.vm)
self.addhw.show(self.topwin)
except Exception as e: