Branch 'kolab/integration/4.13.0' - incidenceeditor-ng/incidenceattendee.cpp

Sandro Knauß knauss at kolabsys.com
Wed Aug 20 12:22:51 CEST 2014


 incidenceeditor-ng/incidenceattendee.cpp |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 67cb7545fcb25ef8b6c7213991782084c31eb437
Author: Sandro Knauß <knauss at kolabsys.com>
Date:   Wed Aug 20 12:19:51 2014 +0200

    Set CuType to Group if we find out, that it is a group

diff --git a/incidenceeditor-ng/incidenceattendee.cpp b/incidenceeditor-ng/incidenceattendee.cpp
index d5fd2f3..cb34435 100644
--- a/incidenceeditor-ng/incidenceattendee.cpp
+++ b/incidenceeditor-ng/incidenceattendee.cpp
@@ -408,6 +408,10 @@ void IncidenceAttendee::groupSearchResult( KJob *job )
   // TODO: Give the user the possibility to choose a group when there is more than one?!
   KABC::ContactGroup group = contactGroups.first();
 
+  int row = dataModel()->attendees().indexOf(attendee);
+  QModelIndex index = dataModel()->index(row, AttendeeTableModel::CuType);
+  dataModel()->setData(index,  KCalCore::Attendee::Group);
+
   mGroupList.insert(attendee,  group);
   updateGroupExpand();
 }




More information about the commits mailing list