X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/793b6832cea443c6140d35168835a8852c17a2ed..2df2d4ea7ee63a43a327b4ffb1c5cddd176aff91:/src/dolphinmodel.cpp 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(); }