Commit 14a11ace authored by Kåre Särs's avatar Kåre Särs

S&R: Files sorted before folders in result tree

parent 9ca19ab4
......@@ -89,6 +89,10 @@ private:
return false;
int sepCount = data(0, Qt::UserRole).toString().count(QDir::separator());
int oSepCount =, Qt::UserRole).toString().count(QDir::separator());
if (sepCount < oSepCount) return true;
if (sepCount > oSepCount) return false;
return data(0, Qt::UserRole).toString().toLower() <, Qt::UserRole).toString().toLower();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment