added missing debug ifdef

This commit is contained in:
csoler 2021-03-13 22:28:52 +01:00
parent 4420575a9a
commit 388140e263

View File

@ -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