PathChooser: Expand ~ to home directory

Change-Id: I4d767b6978f69c0e0a8dbfb3ccd6fc5b33fc3984
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Orgad Shaneh
2017-05-05 00:18:23 +03:00
committed by Orgad Shaneh
parent 76e9100a66
commit d4ac34449b

View File

@@ -187,7 +187,7 @@ QString PathChooserPrivate::expandedPath(const QString &input) const
{
if (input.isEmpty())
return input;
const QString path = QDir::cleanPath(m_environment.expandVariables(input));
const QString path = FileName::fromUserInput(m_environment.expandVariables(input)).toString();
if (path.isEmpty())
return path;