forked from qt-creator/qt-creator
		
	Fix importing of .user files
Task-number: QTCREATORBUG-7654 Change-Id: Ie22930861f843acb9e765423d72b23445cbe48e4 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
		@@ -356,9 +356,7 @@ bool Project::fromMap(const QVariantMap &map)
 | 
			
		||||
    if (!ok || maxI < 0)
 | 
			
		||||
        maxI = 0;
 | 
			
		||||
    int active(map.value(QLatin1String(ACTIVE_TARGET_KEY), 0).toInt(&ok));
 | 
			
		||||
    if (!ok || active < 0)
 | 
			
		||||
        active = 0;
 | 
			
		||||
    if (0 > active || maxI < active)
 | 
			
		||||
    if (!ok || active < 0 || active >= maxI)
 | 
			
		||||
        active = 0;
 | 
			
		||||
 | 
			
		||||
    for (int i = 0; i < maxI; ++i) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user