mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
added missing debug ifdef
This commit is contained in:
parent
4420575a9a
commit
388140e263
1 changed files with 4 additions and 0 deletions
|
@ -96,14 +96,18 @@ void RSPermissionMatrixWidget::updateDisplay()
|
||||||
|
|
||||||
void RSPermissionMatrixWidget::mousePressEvent(QMouseEvent *e)
|
void RSPermissionMatrixWidget::mousePressEvent(QMouseEvent *e)
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG_PERMISSION_MATRIX
|
||||||
std::cerr << "mouse pressed at x=" << e->x() << ", y=" << e->y() << std::endl;
|
std::cerr << "mouse pressed at x=" << e->x() << ", y=" << e->y() << std::endl;
|
||||||
|
#endif
|
||||||
|
|
||||||
uint32_t service_id ;
|
uint32_t service_id ;
|
||||||
RsPeerId peer_id ;
|
RsPeerId peer_id ;
|
||||||
|
|
||||||
if(computeServiceAndPeer(e->x(),e->y(),service_id,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;
|
std::cerr << "Peer id: " << peer_id << ", service: " << service_id << std::endl;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Make sure the service is not globally disabled
|
// Make sure the service is not globally disabled
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue