From: smbaker Date: Tue, 4 Oct 2011 01:51:00 +0000 (-0700) Subject: fix problem with adding networks to RSpecs (QString was not automatically type converted) X-Git-Tag: sface-0.1-20~23 X-Git-Url: http://git.onelab.eu/?p=sface.git;a=commitdiff_plain;h=021a306d360da13a927d1c1d5811a205b09319b8 fix problem with adding networks to RSpecs (QString was not automatically type converted) --- diff --git a/sface/screens/mainscreen.py b/sface/screens/mainscreen.py index c2a2118..22c321f 100644 --- a/sface/screens/mainscreen.py +++ b/sface/screens/mainscreen.py @@ -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):