mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
Merge branch 'KDE/4.12' into KDE/4.13
This commit is contained in:
commit
e8eca7c266
|
@ -658,6 +658,12 @@ void KStandardItemListWidget::dataChanged(const QHash<QByteArray, QVariant>& cur
|
|||
dirtyRoles = roles;
|
||||
}
|
||||
|
||||
// The URL might have changed (i.e., if the sort order of the items has
|
||||
// been changed). Therefore, the "is cut" state must be updated.
|
||||
KFileItemClipboard* clipboard = KFileItemClipboard::instance();
|
||||
const KUrl itemUrl = data().value("url").value<KUrl>();
|
||||
m_isCut = clipboard->isCut(itemUrl);
|
||||
|
||||
// The icon-state might depend from other roles and hence is
|
||||
// marked as dirty whenever a role has been changed
|
||||
dirtyRoles.insert("iconPixmap");
|
||||
|
|
Loading…
Reference in a new issue