Fix signal type error in CompletionView.

On Travis CI we are sometimes seeing:

```
CompletionView.selection_changed[str].emit():
argument 1 has unexpected type 'int'
```

Cast the data to a string before emitting it just to be safe.
This commit is contained in:
Ryan Roden-Corrent 2017-06-14 07:17:30 -04:00
parent 891a6bcf14
commit 051d2665f3

View File

@ -344,7 +344,7 @@ class CompletionView(QTreeView):
indexes = selected.indexes()
if not indexes:
return
data = self.model().data(indexes[0])
data = str(self.model().data(indexes[0]))
self.selection_changed.emit(data)
def resizeEvent(self, e):