We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14a913e commit b8c11b8Copy full SHA for b8c11b8
src/core/qgsfileutils.cpp
@@ -114,7 +114,7 @@ QString QgsFileUtils::findClosestExistingPath( const QString &path )
114
if ( visited.contains( parentPath ) )
115
return QString(); // break circular links
116
117
- if ( parentPath.isEmpty() || parentPath == '.' )
+ if ( parentPath.isEmpty() || parentPath == QStringLiteral( "." ) )
118
return QString();
119
currentPath = QDir( parentPath );
120
visited << parentPath;
@@ -125,5 +125,5 @@ QString QgsFileUtils::findClosestExistingPath( const QString &path )
125
if ( res == QDir::currentPath() )
126
return QString(); // avoid default to binary folder if a filename alone is specified
127
128
- return res == '.' ? QString() : res;
+ return res == QStringLiteral( "." ) ? QString() : res;
129
}
0 commit comments