Commit ce31d0e2 authored by Ahmad Samir's avatar Ahmad Samir Committed by Kurt Hindenburg
Browse files

Always sort the Default/fallback profile first

As suggested by Kurt in
!351
parent 88c58a85
......@@ -39,6 +39,13 @@ static bool profileIndexLessThan(const Profile::Ptr& p1, const Profile::Ptr& p2)
static bool profileNameLessThan(const Profile::Ptr& p1, const Profile::Ptr& p2)
{
// Always put the Default/fallback profile at the top
if (p1->isFallback()) {
return true;
} else if (p2->isFallback()) {
return false;
}
return QString::localeAwareCompare(p1->name(), p2->name()) < 0;
}
......
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