Skip to content

Commit af0ddb6

Browse files
committedOct 4, 2018
[browser] Use link folder icon for symlinked folders
1 parent 7ae3864 commit af0ddb6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎src/core/qgsdataitem.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,13 @@ QIcon QgsDirectoryItem::icon()
744744
if ( state() == Populating )
745745
return QgsDataItem::icon();
746746

747+
// symbolic link? use link icon
748+
QFileInfo fi( mDirPath );
749+
if ( fi.isDir() && fi.isSymLink() )
750+
{
751+
return QgsApplication::getThemeIcon( QStringLiteral( "mIconFolderLink.svg" ) );
752+
}
753+
747754
// loaded? show the open dir icon
748755
if ( state() == Populated )
749756
return openDirIcon();

0 commit comments

Comments
 (0)
Please sign in to comment.