Skip to content
Snippets Groups Projects
Commit e51587d4 authored by Edric Milaret's avatar Edric Milaret
Browse files

peopleproxy: do no connect to rowMoved when using Qt

to rowsAboutToBeMoved too

I ve put a guard on the OS but the real problem is about Qt handling
layoutChanged signal and receiving a duplicate information
(and no longer valid) because of the rowsMoved forwarding necessary
to other platforms client (for now)

Change-Id: I30c2e89067e1fc16124d864f6df3406d678e40d5
Tuleap: #148
parent ccbb811e
Branches
No related tags found
No related merge requests found
......@@ -1090,8 +1090,10 @@ PeopleProxy::PeopleProxy(RecentModel* sourceModel)
// forward the rowsAboutToBeMoved and rowsMoved signals from the source model
// this is needed for the OSX and GNOME clients because they do not handle the layoutChanged
// signal which is emited by the QSortFilterProxyModel when rows are moved in the source model
#ifndef Q_OS_WIN
connect(sourceModel, &QAbstractItemModel::rowsAboutToBeMoved, this, &PeopleProxy::slotRowsAboutToBeMoved);
connect(sourceModel, &QAbstractItemModel::rowsMoved, this, &PeopleProxy::slotRowsMoved);
#endif
}
bool
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment