Fixed slot for signal "filesPreModChanged" and "filesPostModChanged" on SharedFilesDialog.

The list of files is now updated also when the tab is visible.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6990 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2014-01-05 22:51:54 +00:00
parent aff10a352c
commit 3e13311be0
5 changed files with 51 additions and 28 deletions

View file

@ -75,7 +75,7 @@ class RetroshareDirModel : public QAbstractItemModel
void changeAgeIndicator(uint32_t indicator) { ageIndicator = indicator; }
const DirDetailsVector *requestDirDetails(void *ref, bool remote) const;
void update() ;
virtual void update() {} ;
public:
virtual QMimeData * mimeData ( const QModelIndexList & indexes ) const;
@ -87,7 +87,6 @@ class RetroshareDirModel : public QAbstractItemModel
protected:
bool _visible ;
bool _needs_update ;
void treeStyle();
void downloadDirectory(const DirDetails & details, int prefixLen);
@ -192,10 +191,13 @@ class FlatStyle_RDM: public RetroshareDirModel
FlatStyle_RDM(bool mode)
: RetroshareDirModel(mode)
{
_needs_update = true ;
}
virtual ~FlatStyle_RDM() ;
virtual void update() ;
protected slots:
void updateRefs() ;
@ -217,6 +219,7 @@ class FlatStyle_RDM: public RetroshareDirModel
std::vector<std::pair<void *,QString> > _ref_entries ;// used to store the refs to display
std::vector<void *> _ref_stack ; // used to store the refs to update
bool _needs_update ;
};