forked from qt-creator/qt-creator
PathChooser: Expand ~ to home directory
Change-Id: I4d767b6978f69c0e0a8dbfb3ccd6fc5b33fc3984 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
76e9100a66
commit
d4ac34449b
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user