Proper numeric fields extract from version.json.
This commit is contained in:
		
							parent
							
								
									aa26e6f9de
								
							
						
					
					
						commit
						777bb9ff25
					
				@ -32,8 +32,8 @@ namespace {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  QString versionField (const QJsonObject &component, const QString &field) {
 | 
					  QString versionField (const QJsonObject &component, const QString &field) {
 | 
				
			||||||
    return component.contains (field + _platform)
 | 
					    return component.contains (field + _platform)
 | 
				
			||||||
           ? component[field + _platform].toString ()
 | 
					           ? component[field + _platform].toVariant ().toString ()
 | 
				
			||||||
           : component[field].toString ();
 | 
					           : component[field].toVariant ().toString ();
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  QFileInfo fileDir (const QString &fileName) {
 | 
					  QFileInfo fileDir (const QString &fileName) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user