fixed bug causing file lists to not refresh/show until a friend makes a change

This commit is contained in:
csoler 2017-09-14 22:01:52 +02:00
parent 5511a0b2b0
commit 1d231e6db9
2 changed files with 6 additions and 1 deletions

View File

@ -87,7 +87,11 @@ void RetroshareDirModel::treeStyle()
QIcon::Normal, QIcon::On); QIcon::Normal, QIcon::On);
peerIcon = QIcon(":/images/user/identity16.png"); peerIcon = QIcon(":/images/user/identity16.png");
} }
void TreeStyle_RDM::update()
{
preMods() ;
postMods() ;
}
void TreeStyle_RDM::updateRef(const QModelIndex& indx) const void TreeStyle_RDM::updateRef(const QModelIndex& indx) const
{ {
rsFiles->requestDirUpdate(indx.internalPointer()) ; rsFiles->requestDirUpdate(indx.internalPointer()) ;

View File

@ -177,6 +177,7 @@ class TreeStyle_RDM: public RetroshareDirModel
protected: protected:
virtual void updateRef(const QModelIndex&) const ; virtual void updateRef(const QModelIndex&) const ;
virtual void update() ;
/* These are all overloaded Virtual Functions */ /* These are all overloaded Virtual Functions */
virtual int rowCount(const QModelIndex &parent = QModelIndex()) const; virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;