┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2009-07-10 11:46:48 +0000
committerDavid Faure <[email protected]>2009-07-10 11:46:48 +0000
commitebd0f1b06fdf94fc7be5c44a434dd6fc96a34e4a (patch)
tree84a717dd240845832a93fbc1426b0173e6c0d1e9 /src
parentc3ffc95a7356cdb428aa68f0fbfb0db9c6dcf5b5 (diff)
Fix regression introduced by an obviously untested "krazy fix" (r973284). Setting a
QVariant to QString() is not the same as calling clear on the QVariant (which makes the variant invalid). (BUG 194502) svn path=/trunk/KDE/kdebase/apps/; revision=994217
Diffstat (limited to 'src')
-rw-r--r--src/dolphinmodel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dolphinmodel.cpp b/src/dolphinmodel.cpp
index f37452c80..819b37d2a 100644
--- a/src/dolphinmodel.cpp
+++ b/src/dolphinmodel.cpp
@@ -411,7 +411,8 @@ QVariant DolphinModel::sortRoleData(const QModelIndex& index) const
case KDirModel::Type:
if (item.isDir()) {
- retVariant.clear(); // when sorting we want folders to be placed first
+ // when sorting we want folders to be placed first
+ retVariant = QString(); // krazy:exclude=nullstrassign
} else {
retVariant = item.mimeComment();
}