{
if (input.isEmpty())
return input;
- const QString path = QDir::fromNativeSeparators(m_environment.expandVariables(input));
+ // Environment does \-expansion, too.
+ const QString nativeInput = QDir::fromNativeSeparators(input);
+ const QString path = QDir::fromNativeSeparators(m_environment.expandVariables(nativeInput));
if (path.isEmpty())
return path;
//: Selected path is not valid:
displayPath = tr("<not valid>");
- *errorMessage = tr("Full path: <b>%1</b>").arg(QDir::toNativeSeparators(expandedPath));
-
if (expandedPath.isEmpty()) {
if (errorMessage)
*errorMessage = tr("The path must not be empty.");
default:
;
}
-
+ if (errorMessage)
+ *errorMessage = tr("Full path: <b>%1</b>").arg(QDir::toNativeSeparators(expandedPath));
return true;
}