forked from qt-creator/qt-creator
		
	Stop warnings on using QFileInfo without proper filename
* Stop warnings about using QFileInfo without a proper filename. Turns out that the filename of the project can still be empty when calling these methods from the new project wizard (before the first page is done).
This commit is contained in:
		@@ -793,6 +793,8 @@ QString Qt4Project::defaultTopLevelBuildDirectory() const
 | 
			
		||||
 | 
			
		||||
QString Qt4Project::defaultTopLevelBuildDirectory(const QString &profilePath)
 | 
			
		||||
{
 | 
			
		||||
    if (profilePath.isEmpty())
 | 
			
		||||
        return QString();
 | 
			
		||||
    QFileInfo info(profilePath);
 | 
			
		||||
    return QDir(projectDirectory(profilePath) + QLatin1String("/../") + info.baseName() + QLatin1String("-build")).absolutePath();
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user