diff options
author | Arno <am@disconnect.de> | 2011-05-27 16:25:59 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2011-05-27 16:25:59 +0200 |
commit | d924a6414962435a0695441216474c7d95044233 (patch) | |
tree | 1c133ab350dae13ed485d133e7bd6b39225ee9ee /filestreewidget.cpp | |
parent | 547cb6e2b19ba766d104e338d3501289f60489da (diff) | |
download | SheMov-d924a6414962435a0695441216474c7d95044233.tar.gz SheMov-d924a6414962435a0695441216474c7d95044233.tar.bz2 SheMov-d924a6414962435a0695441216474c7d95044233.zip |
Fix removal of items from FilesTreeWidget
When setting the dvd no. on several items in FilesTreeWidget,
QModelIndex was used in a foreach() loop. Since the loop alters the
model, the subsequent operations failed or operated on the wrong
Indexes. Fixed by using a QPersistenModelIndex instead.
Diffstat (limited to 'filestreewidget.cpp')
-rw-r--r-- | filestreewidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filestreewidget.cpp b/filestreewidget.cpp index 983ddeb..2aa32d2 100644 --- a/filestreewidget.cpp +++ b/filestreewidget.cpp @@ -200,7 +200,7 @@ void FilesTreeWidget::edit(int column){ if(!cols.values().contains(column)){ return; } - QModelIndexList sIdxes; + PersistenModelIndexList sIdxes; foreach(QModelIndex idx, currentSel){ QModelIndex pIdx = filesTree()->model()->index(idx.row(), column, idx.parent()); if(pIdx.isValid()){ |