]> cloud.milkyroute.net Git - dolphin.git/commit
Update the "is cut" state of items if necessary
authorFrank Reininghaus <frank78ac@googlemail.com>
Mon, 14 Apr 2014 20:46:38 +0000 (22:46 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Mon, 14 Apr 2014 20:55:58 +0000 (22:55 +0200)
commita7562862e3f6ccbf5058d0885dff3675eaa2161c
tree8d004981582503217738d584bac2c85f8f4460c2
parentd803ecec242cc4b84f89b396f216d2d33439f810
Update the "is cut" state of items if necessary

The icons of items which are "cut" are shown faded in the view. The
"is cut" state of the widget representing an item is updated if the
clipboard contents change. Before this commit, if the sort order was
changed however, then each widget kept the "is cut" state of the item
which had been shown previously at its position.

The solution is to update the "is cut" state also if any of the
widget's data change.

BUG: 332792
REVIEW: 117451
FIXED-IN: 4.12.5
src/kitemviews/kstandarditemlistwidget.cpp