We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent aa4701e commit cc57254Copy full SHA for cc57254
src/core/qgsuserprofile.cpp
@@ -18,6 +18,7 @@
18
#include "qgssqliteutils.h"
19
20
#include <QDir>
21
+#include <QFileInfo>
22
#include <QTextStream>
23
#include <QSettings>
24
#include <sqlite3.h>
@@ -127,7 +128,7 @@ QgsError QgsUserProfile::setAlias( const QString &alias ) const
127
128
const QIcon QgsUserProfile::icon() const
129
{
130
const QString path = mProfileFolder + QDir::separator() + "icon.svg";
- if ( !QDir( path ).exists() )
131
+ if ( !QFileInfo::exists( path ) )
132
133
return QgsApplication::getThemeIcon( "user.svg" );
134
}
0 commit comments