From 16bda49e0667f77f4ebe1d8fa2682abf57aa6765 Mon Sep 17 00:00:00 2001 From: Tannin Date: Sat, 25 May 2013 12:24:48 +0200 Subject: - bugfix: mod priority ordering could become incorrect - bugfix: when grouping is enabled, newly installed mods broke grouping - bugfix: syncing overwrite didn't clean up emptied directory --- src/qtgroupingproxy.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/qtgroupingproxy.cpp') diff --git a/src/qtgroupingproxy.cpp b/src/qtgroupingproxy.cpp index 4e066f65..3ecb2a72 100644 --- a/src/qtgroupingproxy.cpp +++ b/src/qtgroupingproxy.cpp @@ -57,6 +57,7 @@ QtGroupingProxy::QtGroupingProxy(QAbstractItemModel *model, QModelIndex rootNode connect( sourceModel(), SIGNAL(layoutChanged()), SLOT(buildTree()) ); connect( sourceModel(), SIGNAL(dataChanged(QModelIndex,QModelIndex)), SLOT(modelDataChanged(QModelIndex,QModelIndex)) ); + connect( sourceModel(), SIGNAL(modelReset()), this, SLOT(resetModel()) ); if( groupedColumn != -1 ) setGroupedColumn( groupedColumn ); @@ -984,6 +985,12 @@ QtGroupingProxy::modelRowsRemoved( const QModelIndex &parent, int start, int end endRemoveRows(); } +void +QtGroupingProxy::resetModel() +{ + buildTree(); +} + void QtGroupingProxy::modelDataChanged( const QModelIndex &topLeft, const QModelIndex &bottomRight ) { -- cgit v1.3.1