diff options
| author | Frank Reininghaus <[email protected]> | 2013-12-22 13:17:05 +0100 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2013-12-22 13:17:05 +0100 |
| commit | 2e4991d5f095170ab0b306bbdfb9eaa38a5f3f03 (patch) | |
| tree | 521b11ab23a906091a8a08f0cb6683e01f2785ec | |
| parent | 2619cc1c3d9e9ccd9518c4d5ff6e762728f60cb5 (diff) | |
Fix crash when dragging children of expanded folders in Details View
The problem was that the loop in KFileItemModel::createMimeData() which
is supposed to find out if any parent of an item has been added to the
QMimeData already (because it is not necessary to add the item in that
case) did not loop through the parents of the item, but incorrectly
replaced the local variable 'itemData' by its parent.
BUG: 329119
REVIEW: 114562
| -rw-r--r-- | src/kitemviews/kfileitemmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kitemviews/kfileitemmodel.cpp b/src/kitemviews/kfileitemmodel.cpp index 4521374e6..058248a18 100644 --- a/src/kitemviews/kfileitemmodel.cpp +++ b/src/kitemviews/kfileitemmodel.cpp @@ -253,7 +253,7 @@ QMimeData* KFileItemModel::createMimeData(const KItemSet& indexes) const const ItemData* parent = itemData->parent; while (parent && parent != lastAddedItem) { - itemData = itemData->parent; + parent = parent->parent; } if (parent && parent == lastAddedItem) { |
