From 1600ac39f09ded387d073898621ca8568ad3770a Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Tue, 27 Jun 2017 14:08:44 -0400 Subject: [PATCH] fsdetails: Fix displaying filesystem type=ram devices And add a test XML example to demonstrate it --- tests/testdriver.xml | 4 ++++ virtManager/fsdetails.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/tests/testdriver.xml b/tests/testdriver.xml index 31a0fee9d..1aa443d19 100644 --- a/tests/testdriver.xml +++ b/tests/testdriver.xml @@ -704,6 +704,10 @@ Foo bar baz & yeah boii < > yeahfoo + + + + diff --git a/virtManager/fsdetails.py b/virtManager/fsdetails.py index 1a93661b3..adac97b7e 100644 --- a/virtManager/fsdetails.py +++ b/virtManager/fsdetails.py @@ -161,6 +161,8 @@ class vmmFSDetails(vmmGObjectUI): check_visible=True) def get_config_fs_type(self): + if self.widget("fs-type-label").is_visible(): + return self.widget("fs-type-label").get_text() return uiutil.get_list_selection(self.widget("fs-type-combo"), check_visible=True)