fixed constant updating of flat dir model. Had to limit to at most 10000 files to keep it interactive.

This commit is contained in:
csoler 2016-11-20 20:42:14 +01:00
parent 7b78a6843b
commit da84b887a9
2 changed files with 42 additions and 27 deletions

View file

@ -199,11 +199,7 @@ class FlatStyle_RDM: public RetroshareDirModel
Q_OBJECT
public:
FlatStyle_RDM(bool mode)
: RetroshareDirModel(mode), _ref_mutex("Flat file list")
{
_needs_update = true ;
}
FlatStyle_RDM(bool mode);
virtual ~FlatStyle_RDM() ;
@ -233,6 +229,7 @@ class FlatStyle_RDM: public RetroshareDirModel
std::vector<void *> _ref_entries ;// used to store the refs to display
std::vector<void *> _ref_stack ; // used to store the refs to update
bool _needs_update ;
time_t _last_update ;
};