Could be more efficient:

if (m_requests.remove(request))
    emit pendingRequestCountChanged();