summaryrefslogtreecommitdiff
path: root/virtManager/console.py
diff options
context:
space:
mode:
Diffstat (limited to 'virtManager/console.py')
-rw-r--r--virtManager/console.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/virtManager/console.py b/virtManager/console.py
index 90db31cf..8058af93 100644
--- a/virtManager/console.py
+++ b/virtManager/console.py
@@ -100,9 +100,9 @@ class ConnectionInfo(object):
def console_active(self):
if self.gsocket:
return True
- if not self.gport:
+ if (self.gport in [None, -1] and self.gtlsport in [None, -1]):
return False
- return int(self.gport) == -1
+ return True
class Tunnel(object):
@@ -1129,7 +1129,7 @@ class vmmConsolePages(vmmGObjectUI):
self.activate_unavailable_page(msg)
return
- if ginfo.console_active():
+ if not ginfo.console_active():
self.activate_unavailable_page(
_("Graphical console is not yet active for guest"))
self.schedule_retry()