Commit 4cdce257 authored by Dan Pascu's avatar Dan Pascu

Fixed data retrieval for ContactSearchModel

parent 32ccfbe3
......@@ -626,7 +626,7 @@ class ContactSearchModel(QSortFilterProxyModel):
def mimeData(self, indexes):
mime_data = QMimeData()
contacts = [self.items[index.row()] for index in indexes if index.isValid()]
contacts = [self.data(index) for index in indexes if index.isValid()]
if contacts:
mime_data.setData('application/x-blink-contact-list', QByteArray(pickle.dumps(contacts)))
return mime_data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment