]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinmodel.cpp
fixed issue reported by krazy
[dolphin.git] / src / dolphinmodel.cpp
index bb1fd36dda4f354f37392f4daa7524da109596e2..e57aa90d831bb2f2f463c72310bcd43696ba3207 100644 (file)
@@ -411,7 +411,7 @@ QVariant DolphinModel::sortRoleData(const QModelIndex& index) const
 
     case KDirModel::Type:
         if (item.isDir())
-            retVariant = QString(); // when sorting we want folders to be placed first
+            retVariant.clear(); // when sorting we want folders to be placed first
         else
             retVariant = item.mimeComment();
         break;