mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
unselect all IDs when no circle is selected
This commit is contained in:
parent
456a882343
commit
61c7da7e2d
@ -258,8 +258,8 @@
|
||||
|| defined(NXS_NET_DEBUG_4) || defined(NXS_NET_DEBUG_5) || defined(NXS_NET_DEBUG_6) || defined(NXS_NET_DEBUG_7)
|
||||
|
||||
static const RsPeerId peer_to_print = RsPeerId(std::string("")) ;
|
||||
static const RsGxsGroupId group_id_to_print = RsGxsGroupId(std::string("2cd04bbf91e29b1f1b87aa9aa4e358f3" )) ; // use this to allow to this group id only, or "" for all IDs
|
||||
static const uint32_t service_to_print = 0x215 ; // use this to allow to this service id only, or 0 for all services
|
||||
static const RsGxsGroupId group_id_to_print = RsGxsGroupId(std::string("" )) ; // use this to allow to this group id only, or "" for all IDs
|
||||
static const uint32_t service_to_print = 0x218 ; // use this to allow to this service id only, or 0 for all services
|
||||
// warning. Numbers should be SERVICE IDS (see serialiser/rsserviceids.h. E.g. 0x0215 for forums)
|
||||
|
||||
class nullstream: public std::ostream {};
|
||||
|
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user