summaryrefslogtreecommitdiff
path: root/virtManager
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2014-02-28 14:36:13 -0500
committerCole Robinson <crobinso@redhat.com>2014-02-28 14:36:13 -0500
commit3fcc2c2fed3f9ec0eb8a379080a6b616e18287f7 (patch)
tree31da75099fb7a14e0179b7b9066c28fc71a02f1f /virtManager
parent44d4c1d3293348d93bebc8c376691add15a4fcea (diff)
downloadvirt-manager-3fcc2c2fed3f9ec0eb8a379080a6b616e18287f7.tar.gz
details: Fix setting default window size
Diffstat (limited to 'virtManager')
-rw-r--r--virtManager/details.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/virtManager/details.py b/virtManager/details.py
index 79885046..17fd2a88 100644
--- a/virtManager/details.py
+++ b/virtManager/details.py
@@ -522,7 +522,11 @@ class vmmDetails(vmmGObjectUI):
# Set default window size
w, h = self.vm.get_details_window_size()
- self.topwin.set_default_size(w or 800, h or 600)
+ if w <= 0:
+ w = 800
+ if h <= 0:
+ h = 600
+ self.topwin.set_default_size(w, h)
self.oldhwkey = None
self.addhwmenu = None