forked from qt-creator/qt-creator
		
	Android: Fix AndroidManifest wizard invalid package source dir
Fix the wizard from inserting the filename for the file path leading to an invalid directory. Example invalid path: /projectpath/projectname/projectname.pro/android With fixed path: /projectpath/projectname/android Fixes: QTCREATORBUG-26580 Change-Id: If82a6f795ca400beddc26b959e65ea066ad79433 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
		@@ -227,7 +227,10 @@ void ChooseDirectoryPage::initializePage()
 | 
			
		||||
                          "The files in the Android package source directory are copied to the build directory's "
 | 
			
		||||
                          "Android directory and the default files are overwritten."));
 | 
			
		||||
 | 
			
		||||
        m_androidPackageSourceDir->setFilePath(bti.projectFilePath / "android");
 | 
			
		||||
        const FilePath projectPath = bti.projectFilePath.isFile()
 | 
			
		||||
                ? bti.projectFilePath.parentDir() : bti.projectFilePath;
 | 
			
		||||
 | 
			
		||||
        m_androidPackageSourceDir->setFilePath(projectPath / "android");
 | 
			
		||||
        connect(m_androidPackageSourceDir, &PathChooser::rawPathChanged,
 | 
			
		||||
                this, &ChooseDirectoryPage::checkPackageSourceDir);
 | 
			
		||||
    } else {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user