File activate-default-console.patch of Package virt-manager.1480

References: bsc#909602

From a1d3602b017e1145e6da03b23c99a3508bad4482 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= <cbosdonnat@suse.com>
Date: Fri, 23 Jan 2015 14:08:53 +0100
Subject: [PATCH] Activate the default console in all cases

If the Details page of a container is show when hitting the Run button,
switching back to the Console page, doesn't show the text console. By
updating the default console even if the Console page isn't show we
won't have this anymore.
---
 virtManager/details.py | 2 --
 1 file changed, 2 deletions(-)

Index: virt-manager-1.0.1/virtManager/details.py
===================================================================
--- virt-manager-1.0.1.orig/virtManager/details.py
+++ virt-manager-1.0.1/virtManager/details.py
@@ -1394,8 +1394,6 @@ class vmmDetails(vmmGObjectUI):
 
     def activate_default_console_page(self):
         pages = self.widget("details-pages")
-        if pages.get_current_page() != DETAILS_PAGE_CONSOLE:
-            return
         self.console.activate_default_console_page()
 
     # activate_* are called from engine.py via CLI options
openSUSE Build Service is sponsored by