create: Drop redundant _have_startup_error

Isn't needed in the modern code
This commit is contained in:
Cole Robinson
2015-09-13 12:24:05 -04:00
parent ddea18baf9
commit 241c3125e5
2 changed files with 0 additions and 10 deletions

View File

@@ -2191,7 +2191,6 @@ is not yet supported.&lt;/small&gt;</property>
<property name="can_focus">True</property>
<property name="halign">start</property>
<property name="width_chars">25</property>
<signal name="activate" handler="on_create_vm_name_activate" swapped="no"/>
</object>
<packing>
<property name="left_attach">1</property>

View File

@@ -111,9 +111,6 @@ class vmmCreate(vmmGObjectUI):
# 'Guest' class from the previous failed install
self.failed_guest = None
# Whether there was an error at dialog startup
self._have_startup_error = False
self._customize_window = None
self._customize_window_signals = []
@@ -136,7 +133,6 @@ class vmmCreate(vmmGObjectUI):
"on_create_finish_clicked" : self._finish_clicked,
"on_create_pages_switch_page": self._page_changed,
"on_create_vm_name_activate": self._forward_clicked,
"on_create_conn_changed": self._conn_changed,
"on_method_changed": self._method_changed,
"on_config_machine_changed": self._machine_changed,
@@ -242,7 +238,6 @@ class vmmCreate(vmmGObjectUI):
self._set_conn_state()
def _show_startup_error(self, error, hideinstall=True):
self._have_startup_error = True
self.widget("startup-error-box").show()
self.widget("create-forward").set_sensitive(False)
if hideinstall:
@@ -350,7 +345,6 @@ class vmmCreate(vmmGObjectUI):
populated in _set_conn_state
"""
self.failed_guest = None
self._have_startup_error = False
self.guest = None
self.disk = None
self.nic = None
@@ -1518,9 +1512,6 @@ class vmmCreate(vmmGObjectUI):
notebook = self.widget("create-pages")
curpage = notebook.get_current_page()
if self._have_startup_error:
return
if curpage == PAGE_INSTALL:
# Make sure we have detected the OS before validating the page
did_start = self._start_detect_os_if_needed(