virt-manager/5310e52d-fix-setting-default-window-size.patch
Charles Arnold 9dab6bfcb9 - Upstream bug fixes
530f80f5-handle-missing-storage-volumes.patch
  5310bd89-console-fix-unsetting-resize-guest.patch
  5310e3ac-set-show_arrow-to-true.patch
  5310e3ac-vmmConsolePages-toggle-visibilities-on-page-change.patch
  5310e3ac-vmmDetails-toggle-visibilities-on-page-change.patch
  5310e52d-fix-setting-default-window-size.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=147
2014-03-03 21:54:35 +00:00

24 lines
808 B
Diff

Subject: details: Fix setting default window size
From: Cole Robinson crobinso@redhat.com Fri Feb 28 14:36:13 2014 -0500
Date: Fri Feb 28 14:36:13 2014 -0500:
Git: 3fcc2c2fed3f9ec0eb8a379080a6b616e18287f7
Index: virt-manager-1.0.0/virtManager/details.py
===================================================================
--- virt-manager-1.0.0.orig/virtManager/details.py
+++ virt-manager-1.0.0/virtManager/details.py
@@ -521,7 +521,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