summaryrefslogtreecommitdiffstats
path: root/tdeio/tdeio/tdefileitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeio/tdeio/tdefileitem.cpp')
-rw-r--r--tdeio/tdeio/tdefileitem.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/tdeio/tdeio/tdefileitem.cpp b/tdeio/tdeio/tdefileitem.cpp
index b852fa35d..7b4c7ccd3 100644
--- a/tdeio/tdeio/tdefileitem.cpp
+++ b/tdeio/tdeio/tdefileitem.cpp
@@ -1034,10 +1034,11 @@ bool KFileItem::cmp( const KFileItem & item )
&& m_bLink == item.m_bLink
&& m_hidden == item.m_hidden
&& size(hasSize1) == item.size(hasSize2)
- && hasSize1 == hasSize2
+ && hasSize1 == hasSize2
&& time(TDEIO::UDS_MODIFICATION_TIME, hasTime1) == item.time(TDEIO::UDS_MODIFICATION_TIME, hasTime2)
- && hasTime1 == hasTime2
- && (!d || !item.d || d->iconName == item.d->iconName) );
+ && hasTime1 == hasTime2
+ && (!d || !item.d || d->iconName == item.d->iconName)
+ && (!isMimeTypeKnown() || !item.isMimeTypeKnown() || mimetype() == item.mimetype()) );
// Don't compare the mimetypes here. They might not be known, and we don't want to
// do the slow operation of determining them here.
@@ -1078,6 +1079,8 @@ void KFileItem::assign( const KFileItem & item )
d = new KFileItemPrivate;
}
d->iconName = item.d->iconName;
+ d->comment = item.d->comment;
+ d->commentCached = item.d->commentCached;
} else {
delete d;
d = 0;