addhw: Refresh video model when relaunching dialog

Since values depend on VM config which can change between runs.
This commit is contained in:
Cole Robinson 2012-02-08 18:20:59 -05:00
parent 32456e5ed7
commit 67ca0a9f34
1 changed files with 3 additions and 0 deletions

View File

@ -503,6 +503,9 @@ class vmmAddHardware(vmmGObjectUI):
self.widget("fs-target").set_text("")
self.widget("fs-readonly").set_active(False)
# Video params
uihelpers.populate_video_combo(self.vm, self.widget("video-model"))
# Hide all notebook pages, so the wizard isn't as big as the largest
# page
notebook = self.widget("create-pages")