old version compatibility
This commit is contained in:
parent
3caf54ff34
commit
8048ef1d36
|
@ -3791,7 +3791,10 @@ void Settings::Environment::doLoad()
|
||||||
checkAndSetTerminal();
|
checkAndSetTerminal();
|
||||||
|
|
||||||
mAStylePath = stringValue("astyle_path","");
|
mAStylePath = stringValue("astyle_path","");
|
||||||
if (mAStylePath.isEmpty()) {
|
if (mAStylePath.isEmpty()
|
||||||
|
/* compatibily for old configuration */
|
||||||
|
|| ( mAStylePath == includeTrailingPathDelimiter(pSettings->dirs().appLibexecDir())+"astyle")
|
||||||
|
) {
|
||||||
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
|
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
|
||||||
QString path = env.value("PATH");
|
QString path = env.value("PATH");
|
||||||
QStringList pathList = path.split(PATH_SEPARATOR);
|
QStringList pathList = path.split(PATH_SEPARATOR);
|
||||||
|
|
Loading…
Reference in New Issue