Skip to content
Permalink
Browse files

[browser] Use link folder icon for symlinked folders

  • Loading branch information
nyalldawson committed Oct 3, 2018
1 parent 7ae3864 commit af0ddb6a7c8c631251333e59a9b24a480fba8c4a
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/core/qgsdataitem.cpp
@@ -744,6 +744,13 @@ QIcon QgsDirectoryItem::icon()
if ( state() == Populating )
return QgsDataItem::icon();

// symbolic link? use link icon
QFileInfo fi( mDirPath );
if ( fi.isDir() && fi.isSymLink() )
{
return QgsApplication::getThemeIcon( QStringLiteral( "mIconFolderLink.svg" ) );
}

// loaded? show the open dir icon
if ( state() == Populated )
return openDirIcon();

0 comments on commit af0ddb6

Please sign in to comment.
You can’t perform that action at this time.