forked from qt-creator/qt-creator
MiniTargetSelector: Sort build/deploy/run configurations case insensitively
Change-Id: Ifbb305808046ea85f1f250beef3a518842de8b01 Task-number: QTCREATORBUG-13963 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user