Don't strip spaces when getting conversion option values in the GUI.

This commit is contained in:
John Schember 2011-03-12 11:59:32 -05:00
parent 8718fd95f8
commit c82eebd09e

View File

@ -136,7 +136,7 @@ class Widget(QWidget):
return g.value() return g.value()
elif isinstance(g, (QLineEdit, QTextEdit)): elif isinstance(g, (QLineEdit, QTextEdit)):
func = getattr(g, 'toPlainText', getattr(g, 'text', None))() func = getattr(g, 'toPlainText', getattr(g, 'text', None))()
ans = unicode(func).strip() ans = unicode(func)
if not ans: if not ans:
ans = None ans = None
return ans return ans