fix problem with adding networks to RSpecs (QString was not automatically type converted)
authorsmbaker <smbaker@fc8clean.lan>
Tue, 4 Oct 2011 01:51:00 +0000 (18:51 -0700)
committersmbaker <smbaker@fc8clean.lan>
Tue, 4 Oct 2011 01:51:00 +0000 (18:51 -0700)
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)
-        return statusItem.data(Qt.DisplayRole).toString()
+        return str(statusItem.data(Qt.DisplayRole).toString())
 
     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):