aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRael <rael.gc@gmail.com>2015-09-30 13:09:33 -0300
committerRael <rael.gc@gmail.com>2015-09-30 13:09:33 -0300
commit1fad8ec704426fd8f287fd8249c0f7b1d78cb720 (patch)
treeb5ad178128a17ad164c082227c0c85295b497019
parentcddf5c8f9d229816a0d99b547cf12e5a636deca5 (diff)
downloadscudcloud-1fad8ec704426fd8f287fd8249c0f7b1d78cb720.zip
scudcloud-1fad8ec704426fd8f287fd8249c0f7b1d78cb720.tar.gz
scudcloud-1fad8ec704426fd8f287fd8249c0f7b1d78cb720.tar.bz2
Make sure value returned by Speller.suggest is str (Fixes #244)
-rw-r--r--scudcloud-1.0/lib/speller.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scudcloud-1.0/lib/speller.py b/scudcloud-1.0/lib/speller.py
index 11f365e..e60967c 100644
--- a/scudcloud-1.0/lib/speller.py
+++ b/scudcloud-1.0/lib/speller.py
@@ -80,7 +80,7 @@ class Speller(QObject):
boldFont = menu.font()
boldFont.setBold(True)
for i in range(0, count):
- action = QtGui.QAction(suggests[i], self)
+ action = QtGui.QAction(str(suggests[i]), self)
action.triggered.connect(lambda:self.replaceWord(element, word))
action.setData(suggests[i])
action.setFont(boldFont)