Commit e36b4016 authored by hjk's avatar hjk
Browse files

QmlJS: Fix crash in PathsAndLanguages::compact()

Task-number: QTCREATORBUG-13786
Change-Id: If8c84714382c751f51315d62e1d4b0764e4431ff
Reviewed-by: default avatarFawzi Mohamed <>
parent e35809bd
......@@ -300,7 +300,11 @@ bool PathsAndLanguages::maybeInsert(const PathAndLanguage &pathAndLanguage) {
return true;
void PathsAndLanguages::compact() {
void PathsAndLanguages::compact()
if (m_list.isEmpty())
int oldCompactionPlace = 0;
Utils::FileName oldPath = m_list.first().path();
QList<PathAndLanguage> compactedList;
Supports Markdown
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