createvol: Fix showing backing store UI on first run (bz 1670266)

Whether we check for a vol-format value shouldn't be dependent
on whether the UI is on screen (is_visible), but whether the UI
is requested to be shown (get_visible)

https://bugzilla.redhat.com/show_bug.cgi?id=1670266
This commit is contained in:
Cole Robinson 2019-02-03 12:37:41 -05:00
parent 39bb8968d0
commit 4b5cfe3cbb

View File

@ -189,7 +189,7 @@ class vmmCreateVolume(vmmGObjectUI):
self.parent_pool.get_pretty_available())
def get_config_format(self):
if not self.widget("vol-format").is_visible():
if not self.widget("vol-format").get_visible():
return None
return uiutil.get_list_selection(self.widget("vol-format"))