Forgot to clear the list of files when a channel is loaded.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7482 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2014-08-06 15:02:22 +00:00
parent 899aa36fb8
commit c2624309e9
3 changed files with 7 additions and 0 deletions

View File

@ -118,6 +118,11 @@ void GxsChannelFilesWidget::addFiles(const RsGxsChannelPost &post, bool related)
}
}
void GxsChannelFilesWidget::clear()
{
ui->treeWidget->clear();
}
void GxsChannelFilesWidget::setFilter(const QString &text, int type)
{
if (mFilterText == text && mFilterType == type) {

View File

@ -44,6 +44,7 @@ public:
~GxsChannelFilesWidget();
void addFiles(const RsGxsChannelPost &post, bool related);
void clear();
public slots:
void setFilter(const QString &text, int type);

View File

@ -380,6 +380,7 @@ void GxsChannelPostsWidget::insertChannelPosts(std::vector<RsGxsChannelPost> &po
void GxsChannelPostsWidget::clearPosts()
{
ui->feedWidget->clear();
ui->fileWidget->clear();
}
void GxsChannelPostsWidget::subscribeGroup(bool subscribe)