snapshots: Fix initial UI state when guest has no snapshots

This commit is contained in:
Cole Robinson 2013-09-30 15:52:37 -04:00
parent b1d3987aaa
commit 85ec41c3c9

View File

@ -82,8 +82,7 @@ class vmmSnapshotPage(vmmGObjectUI):
self.top_box = self.widget("snapshot-top-box")
self.widget("snapshot-top-window").remove(self.top_box)
self._set_snapshot_state(None)
self.widget("snapshot-list").get_selection().emit("changed")
##############
@ -187,7 +186,6 @@ class vmmSnapshotPage(vmmGObjectUI):
if current:
do_select = treeiter
self._set_snapshot_state(None)
if len(model):
if do_select is None:
do_select = model.get_iter_from_string("0")