fix problem with adding networks to RSpecs (QString was not automatically type converted)
[sface.git] / sface / screens / mainscreen.py
index c2a2118..22c321f 100644 (file)
@@ -410,10 +410,10 @@ class SliceWidget(QWidget):
 
     def itemStatus(self, item):
         statusItem = item.parent().child(item.row(), MEMBERSHIP_STATUS_COLUMN)
 
     def itemStatus(self, item):
         statusItem = item.parent().child(item.row(), MEMBERSHIP_STATUS_COLUMN)
-        return statusItem.data(Qt.DisplayRole).toString()
+        return str(statusItem.data(Qt.DisplayRole).toString())
 
     def itemText(self, item):
 
     def itemText(self, item):
-        return item.data(Qt.DisplayRole).toString()
+        return str(item.data(Qt.DisplayRole).toString())
 
     # Recursively walk the tree, making changes to the RSpec
     def process_subtree(self, rspec, resources, item, depth = 0):
 
     # Recursively walk the tree, making changes to the RSpec
     def process_subtree(self, rspec, resources, item, depth = 0):