Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2015-11-09 19:21:42 +0300
committerOlivier Goffart <ogoffart@woboq.com>2015-11-09 19:22:17 +0300
commitb29d1e94b59baf95bb917985e93fec42a2bd84c9 (patch)
tree0bc364c9d3aca9eb0b01999f32e2dbefb554ca64 /src/gui/sharee.cpp
parentb74e81267124ff4d2358410fe96ec35f6702982b (diff)
ShareDialog: fix autocompletion took the wrong user
Diffstat (limited to 'src/gui/sharee.cpp')
-rw-r--r--src/gui/sharee.cpp3
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();
}