diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2015-11-09 19:21:42 +0300 |
---|---|---|
committer | Olivier Goffart <ogoffart@woboq.com> | 2015-11-09 19:22:17 +0300 |
commit | b29d1e94b59baf95bb917985e93fec42a2bd84c9 (patch) | |
tree | 0bc364c9d3aca9eb0b01999f32e2dbefb554ca64 /src/gui/sharee.cpp | |
parent | b74e81267124ff4d2358410fe96ec35f6702982b (diff) |
ShareDialog: fix autocompletion took the wrong user
Diffstat (limited to 'src/gui/sharee.cpp')
-rw-r--r-- | src/gui/sharee.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/sharee.cpp b/src/gui/sharee.cpp index 7f2980622..cfb1decd6 100644 --- a/src/gui/sharee.cpp +++ b/src/gui/sharee.cpp @@ -165,6 +165,9 @@ QVariant ShareeModel::data(const QModelIndex &index, int role) const if (role == Qt::DisplayRole || role == Qt::EditRole) { return _sharees.at(index.row())->format(); } + if (role == Qt::UserRole) { + return QVariant::fromValue(_sharees.at(index.row())); + } return QVariant(); } |