From 9f7c076d242889c97955e2489e414aaca8058d68 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 9 Dec 2015 16:58:15 +0100 Subject: Get the actual id of the folder --- framework/mail/folderlistmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/mail') diff --git a/framework/mail/folderlistmodel.cpp b/framework/mail/folderlistmodel.cpp index f6a95074..0240d95a 100644 --- a/framework/mail/folderlistmodel.cpp +++ b/framework/mail/folderlistmodel.cpp @@ -38,7 +38,7 @@ QVariant FolderListModel::data(const QModelIndex &idx, int role) const case Icon: return srcIdx.sibling(srcIdx.row(), 1).data(Qt::DisplayRole).toString(); case Id: - return QString("some id"); + return srcIdx.data(Akonadi2::Store::DomainObjectBaseRole).value()->identifier(); } return QIdentityProxyModel::data(idx, role); } -- cgit v1.2.3