details: don't switch to console page every time lxc guest is updated

This commit is contained in:
Cole Robinson 2012-03-02 09:16:03 -05:00
parent 0782a10b29
commit 3e350aa691

View File

@ -1460,6 +1460,11 @@ class vmmDetails(vmmGObjectUI):
if self.vm.get_graphics_devices() or not self.vm.get_serial_devs(): if self.vm.get_graphics_devices() or not self.vm.get_serial_devs():
return return
# Only show serial page if we are already on console view
pages = self.widget("details-pages")
if pages.get_current_page() != PAGE_CONSOLE:
return
# Show serial console # Show serial console
devs = self.build_serial_list() devs = self.build_serial_list()
for name, ignore, sensitive, ignore, cb, serialidx in devs: for name, ignore, sensitive, ignore, cb, serialidx in devs: