mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-11 10:35:22 -04:00
Disabled refill of FriendSelectionWidget after group changed when no groups are shown.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6444 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c6e2034b66
commit
61d43e8e72
2 changed files with 11 additions and 2 deletions
|
@ -94,7 +94,7 @@ FriendSelectionWidget::FriendSelectionWidget(QWidget *parent) :
|
|||
connect(ui->deselectAll_PB, SIGNAL(clicked()), this, SLOT(deselectAll()));
|
||||
connect(ui->filterLineEdit, SIGNAL(textChanged(QString)), this, SLOT(filterItems(QString)));
|
||||
|
||||
connect(NotifyQt::getInstance(), SIGNAL(groupsChanged(int)), this, SLOT(fillList()));
|
||||
connect(NotifyQt::getInstance(), SIGNAL(groupsChanged(int)), this, SLOT(groupsChanged(int)));
|
||||
connect(NotifyQt::getInstance(), SIGNAL(peerStatusChanged(const QString&,int)), this, SLOT(peerStatusChanged(const QString&,int)));
|
||||
|
||||
mCompareRole = new RSTreeWidgetItemCompareRole;
|
||||
|
@ -489,6 +489,13 @@ void FriendSelectionWidget::secured_fillList()
|
|||
emit contentChanged();
|
||||
}
|
||||
|
||||
void FriendSelectionWidget::groupsChanged(int /*type*/)
|
||||
{
|
||||
if (mShowTypes & SHOW_GROUP) {
|
||||
fillList();
|
||||
}
|
||||
}
|
||||
|
||||
void FriendSelectionWidget::peerStatusChanged(const QString& peerId, int status)
|
||||
{
|
||||
if(!isVisible())
|
||||
|
@ -826,6 +833,7 @@ void FriendSelectionWidget::deselectAll()
|
|||
for(QTreeWidgetItemIterator itemIterator(ui->friendList);*itemIterator!=NULL;++itemIterator)
|
||||
setSelected(mListModus, *itemIterator, false);
|
||||
}
|
||||
|
||||
void FriendSelectionWidget::selectAll()
|
||||
{
|
||||
for(QTreeWidgetItemIterator itemIterator(ui->friendList);*itemIterator!=NULL;++itemIterator)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue