Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
folderutils.cpp: Fix getAppPartsSubFolder2 returns current working di…
…rectory if fritzing-parts folder is not found getApplicationSubFolder returns QDir() if the directory can not be found, but QDir() returns the current working directory, which nearly always exists and probably is the wrong path. As getAppPartsSubFolder2 only checks for existence of that directory we end up with the wrong directory if parts folder is used instead for fritzing-parts. Therefore check if when we ask for fritzing-parts folder we really get a folder with that name.
- Loading branch information