Commit f3a0e588 authored by Daniel Teske's avatar Daniel Teske

MiniTargetSelector: Sort build/deploy/run configurations case insensitively

Change-Id: Ifbb305808046ea85f1f250beef3a518842de8b01
Task-number: QTCREATORBUG-13963
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent cac63d1d
......@@ -444,7 +444,7 @@ void GenericListWidget::addProjectConfiguration(ProjectConfiguration *pc)
int pos = count();
for (int i = 0; i < count(); ++i) {
ProjectConfiguration *p = item(i)->data(Qt::UserRole).value<ProjectConfiguration *>();
if (pc->displayName() < p->displayName()) {
if (caseFriendlyCompare(pc->displayName(), p->displayName()) < 0) {
pos = i;
break;
}
......@@ -512,7 +512,7 @@ void GenericListWidget::displayNameChanged()
int pos = count();
for (int i = 0; i < count(); ++i) {
ProjectConfiguration *p = item(i)->data(Qt::UserRole).value<ProjectConfiguration *>();
if (pc->displayName() < p->displayName()) {
if (caseFriendlyCompare(pc->displayName(), p->displayName()) < 0) {
pos = i;
break;
}
......
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