mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-24 23:19:29 -05:00
Merge pull request #1935 from PhenomRetroShare/Fix_FriendsFilesFlatView
Fix FriendsFiles list when on FlatView
This commit is contained in:
commit
cb44d42f49
@ -335,12 +335,13 @@ QString RetroshareDirModel::getAgeIndicatorString(const DirDetails &details) con
|
|||||||
const QIcon& RetroshareDirModel::getFlagsIcon(FileStorageFlags flags)
|
const QIcon& RetroshareDirModel::getFlagsIcon(FileStorageFlags flags)
|
||||||
{
|
{
|
||||||
static QIcon *static_icons[8] = {NULL};
|
static QIcon *static_icons[8] = {NULL};
|
||||||
|
if(static_icons[0] == NULL)
|
||||||
|
static_icons[0] = new QIcon();
|
||||||
|
|
||||||
int n=0;
|
int n=0;
|
||||||
if(flags & DIR_FLAGS_ANONYMOUS_DOWNLOAD) n += 1 ;
|
if(flags & DIR_FLAGS_ANONYMOUS_DOWNLOAD) n += 1 ;
|
||||||
if(flags & DIR_FLAGS_ANONYMOUS_SEARCH ) n += 2 ;
|
if(flags & DIR_FLAGS_ANONYMOUS_SEARCH ) n += 2 ;
|
||||||
if(flags & DIR_FLAGS_BROWSABLE ) n += 4 ;
|
if(flags & DIR_FLAGS_BROWSABLE ) n += 4 ;
|
||||||
n-= 1;
|
|
||||||
|
|
||||||
if(static_icons[n] == NULL)
|
if(static_icons[n] == NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user