unselect all IDs when no circle is selected

This commit is contained in:
csoler 2016-03-12 11:02:32 -05:00
parent 456a882343
commit 61c7da7e2d
2 changed files with 7 additions and 3 deletions

View file

@ -503,6 +503,7 @@ void IdDialog::circle_selected()
mStateHelper->setWidgetEnabled(ui->pushButton_editCircle, false);
ui->pushButton_editCircle->setText(tr("Show details")) ;
ui->pushButton_editCircle->setEnabled(false) ;
mark_matching_tree(ui->idTreeWidget, std::set<RsGxsId>(), RSID_COL_KEYID) ;
return;
}
@ -522,7 +523,10 @@ void IdDialog::circle_selected()
/* update friend lists */
RsGxsCircleDetails details;
for(int i=0;i<6 && !(rsGxsCircles->getCircleDetails(id, details));++i) usleep(300*1000) ;
// This is a trick to force caching the circle data, allowing to wait for at most 1.2 secs.
// A better choice would be to make the loading asynced.
for(int i=0;i<6 && !(rsGxsCircles->getCircleDetails(id, details));++i) usleep(200*1000) ;
/* now mark all the members */