mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Merge branch 'KDE/4.12' into KDE/4.13
This commit is contained in:
commit
8b0df229b7
1 changed files with 6 additions and 0 deletions
|
@ -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