Skip to content

Commit cc57254

Browse files
YoannQDQnyalldawson
authored andcommittedApr 24, 2023
Fix custom profile icon
1 parent aa4701e commit cc57254

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/core/qgsuserprofile.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "qgssqliteutils.h"
1919

2020
#include <QDir>
21+
#include <QFileInfo>
2122
#include <QTextStream>
2223
#include <QSettings>
2324
#include <sqlite3.h>
@@ -127,7 +128,7 @@ QgsError QgsUserProfile::setAlias( const QString &alias ) const
127128
const QIcon QgsUserProfile::icon() const
128129
{
129130
const QString path = mProfileFolder + QDir::separator() + "icon.svg";
130-
if ( !QDir( path ).exists() )
131+
if ( !QFileInfo::exists( path ) )
131132
{
132133
return QgsApplication::getThemeIcon( "user.svg" );
133134
}

0 commit comments

Comments
 (0)
Please sign in to comment.