mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 23:49:35 -05:00
Merge pull request #2378 from csoler/v0.6-BugFixing_10
Last fixes (removed debug log) before release
This commit is contained in:
commit
751fffc30f
@ -272,8 +272,7 @@ private:
|
||||
{
|
||||
if(mPreferredGroupId < potentialGrId)
|
||||
{
|
||||
std::cerr << "supersedePreferredGroup(...) " << potentialGrId
|
||||
<< " supersed " << mPreferredGroupId << std::endl;
|
||||
// std::cerr << "supersedePreferredGroup(...) " << potentialGrId << " supersed " << mPreferredGroupId << std::endl;
|
||||
mPreferredGroupId = potentialGrId;
|
||||
return true;
|
||||
}
|
||||
|
@ -1781,7 +1781,7 @@ rstime_t p3GxsCircles::service_getLastGroupSeenTs(const RsGxsGroupId& gid)
|
||||
}
|
||||
bool p3GxsCircles::service_checkIfGroupIsStillUsed(const RsGxsGrpMetaData& meta)
|
||||
{
|
||||
#ifdef GXSFORUMS_CHANNELS
|
||||
#ifdef GXSFORUMS_CIRCLES
|
||||
std::cerr << "p3gxsChannels: Checking unused circles: called by GxsCleaning." << std::endl;
|
||||
#endif
|
||||
|
||||
@ -1794,7 +1794,7 @@ bool p3GxsCircles::service_checkIfGroupIsStillUsed(const RsGxsGrpMetaData& meta)
|
||||
auto it = mKnownCircles.find(meta.mGroupId);
|
||||
bool unknown_posted = (it == mKnownCircles.end());
|
||||
|
||||
#ifdef GXSFORUMS_CHANNELS
|
||||
#ifdef GXSFORUMS_CIRCLES
|
||||
std::cerr << " Circle " << meta.mGroupId ;
|
||||
#endif
|
||||
|
||||
@ -1803,7 +1803,7 @@ bool p3GxsCircles::service_checkIfGroupIsStillUsed(const RsGxsGrpMetaData& meta)
|
||||
// This case should normally not happen. It does because this board was never registered since it may
|
||||
// arrived before this code was here
|
||||
|
||||
#ifdef GXSFORUMS_CHANNELS
|
||||
#ifdef GXSFORUMS_CIRCLES
|
||||
std::cerr << ". Not known yet. Adding current time as new TS." << std::endl;
|
||||
#endif
|
||||
mKnownCircles[meta.mGroupId] = now;
|
||||
@ -1816,18 +1816,20 @@ bool p3GxsCircles::service_checkIfGroupIsStillUsed(const RsGxsGrpMetaData& meta)
|
||||
bool used_by_friends = (now < it->second + CIRCLES_UNUSED_BY_FRIENDS_DELAY);
|
||||
bool subscribed = static_cast<bool>(meta.mSubscribeFlags & GXS_SERV::GROUP_SUBSCRIBE_SUBSCRIBED);
|
||||
|
||||
#ifdef GXSFORUMS_CIRCLES
|
||||
std::cerr << ". subscribed: " << subscribed << ", used_by_friends: " << used_by_friends << " last TS: " << now - it->second << " secs ago (" << (now-it->second)/86400 << " days)";
|
||||
#endif
|
||||
|
||||
if(!subscribed && !used_by_friends)
|
||||
{
|
||||
#ifdef GXSFORUMS_CHANNELS
|
||||
#ifdef GXSFORUMS_CIRCLES
|
||||
std::cerr << ". Scheduling for deletion" << std::endl;
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef GXSFORUMS_CHANNELS
|
||||
#ifdef GXSFORUMS_CIRCLES
|
||||
std::cerr << ". Keeping!" << std::endl;
|
||||
#endif
|
||||
return true;
|
||||
|
@ -161,7 +161,11 @@ QVariant RSTextBrowser::loadResource(int type, const QUrl &name)
|
||||
|
||||
// case 4: otherwise, do not display
|
||||
|
||||
std::cerr << "TEXTBROWSER: refusing load ressource request: type=" << type << " scheme=" << name.scheme().toStdString() << ", url=" << name.toString().toStdString() << std::endl;
|
||||
std::cerr << "TEXTBROWSER: refusing load ressource request: type=" << type << " scheme="
|
||||
<< name.scheme().toStdString() << ", url="
|
||||
<< name.toString().left(50).toStdString()
|
||||
<< ((name.toString().length()>50)?"...":"")
|
||||
<< std::endl;
|
||||
|
||||
if (mImageBlockWidget)
|
||||
mImageBlockWidget->show();
|
||||
|
@ -96,14 +96,18 @@ void RSPermissionMatrixWidget::updateDisplay()
|
||||
|
||||
void RSPermissionMatrixWidget::mousePressEvent(QMouseEvent *e)
|
||||
{
|
||||
#ifdef DEBUG_PERMISSION_MATRIX
|
||||
std::cerr << "mouse pressed at x=" << e->x() << ", y=" << e->y() << std::endl;
|
||||
#endif
|
||||
|
||||
uint32_t service_id ;
|
||||
RsPeerId peer_id ;
|
||||
|
||||
if(computeServiceAndPeer(e->x(),e->y(),service_id,peer_id))
|
||||
{
|
||||
#ifdef DEBUG_PERMISSION_MATRIX
|
||||
std::cerr << "Peer id: " << peer_id << ", service: " << service_id << std::endl;
|
||||
#endif
|
||||
|
||||
// Make sure the service is not globally disabled
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user