diff --git a/src/RideNavigatorProxy.h b/src/RideNavigatorProxy.h index 7e4e3c7ca..f39f356c9 100644 --- a/src/RideNavigatorProxy.h +++ b/src/RideNavigatorProxy.h @@ -515,6 +515,13 @@ class SearchFilter : public QSortFilterProxyModel fileIndex = i; } } + + // make sure changes are propogated upstream + connect(model, SIGNAL(modelReset()), this, SIGNAL(modelReset())); + connect(model, SIGNAL(dataChanged(QModelIndex, QModelIndex)), this, SIGNAL(modelReset())); + connect(model, SIGNAL(rowsInserted(QModelIndex,int,int)), this, SIGNAL(modelReset())); + connect(model, SIGNAL(rowsMoved(QModelIndex,int,int,QModelIndex,int)), this, SIGNAL(modelReset())); + connect(model, SIGNAL(rowsRemoved(QModelIndex,int,int)), this, SIGNAL(modelReset())); } bool filterAcceptsRow (int source_row, const QModelIndex &source_parent) const {