Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix custom profile icon
  • Loading branch information
YoannQDQ authored and nyalldawson committed Apr 24, 2023
1 parent aa4701e commit cc57254
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/qgsuserprofile.cpp
Expand Up @@ -18,6 +18,7 @@
#include "qgssqliteutils.h"

#include <QDir>
#include <QFileInfo>
#include <QTextStream>
#include <QSettings>
#include <sqlite3.h>
Expand Down Expand Up @@ -127,7 +128,7 @@ QgsError QgsUserProfile::setAlias( const QString &alias ) const
const QIcon QgsUserProfile::icon() const
{
const QString path = mProfileFolder + QDir::separator() + "icon.svg";
if ( !QDir( path ).exists() )
if ( !QFileInfo::exists( path ) )
{
return QgsApplication::getThemeIcon( "user.svg" );
}
Expand Down

0 comments on commit cc57254

Please sign in to comment.