Commit d2360a69 authored by Daniel Teske's avatar Daniel Teske
Browse files

Mini project selector: Fix position of new projects



Change-Id: I01ed1ff0a07ef25a485f63e3ddbf7bb9afe26043
Reviewed-by: default avatarKonstantin Tokarev <annulen@yandex.ru>
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent 8b78195d
......@@ -237,12 +237,14 @@ void ProjectListWidget::addProject(Project *project)
m_ignoreIndexChange = true;
QString sortName = fullName(project);
int pos = 0;
int pos = count();
for (int i=0; i < count(); ++i) {
Project *p = item(i)->data(Qt::UserRole).value<Project*>();
QString itemSortName = fullName(p);
if (itemSortName > sortName)
if (itemSortName > sortName) {
pos = i;
break;
}
}
bool useFullName = false;
......
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