diff options
author | Tobias Hunger <tobias.hunger@digia.com> | 2012-10-05 14:32:40 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@digia.com> | 2012-10-09 14:37:01 +0200 |
commit | 8d1e87c790f7ea1d28bc290a95c9eec67a13476a (patch) | |
tree | be480be775baedae727a4fdd27e17de385b2ffe9 /src/plugins/projectexplorer/taskmodel.h | |
parent | 996479e64fba04cd0c42b9f6c8eca82398cd01db (diff) |
Fix possible crash
The filter model needs to remove rows before the view tries to find
the next row to select. Otherwise the filtermodel might access the
source model at a position that is out of bounds.
Change-Id: Id610455f32e7c7fe921c243537def0097b46a798
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Diffstat (limited to 'src/plugins/projectexplorer/taskmodel.h')
-rw-r--r-- | src/plugins/projectexplorer/taskmodel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/taskmodel.h b/src/plugins/projectexplorer/taskmodel.h index bc81915c02..81953c7f6a 100644 --- a/src/plugins/projectexplorer/taskmodel.h +++ b/src/plugins/projectexplorer/taskmodel.h @@ -164,7 +164,7 @@ public: QModelIndex mapFromSource(const QModelIndex &idx) const; private slots: void handleNewRows(const QModelIndex &index, int first, int last); - void handleRemovedRows(const QModelIndex &index, int first, int last); + void handleRowsAboutToBeRemoved(const QModelIndex &index, int first, int last); void handleDataChanged(QModelIndex,QModelIndex bottom); void handleReset(); |