Merge pull request #16182 from MiladNazeri/BUGZ-1452/entity-link-property-right-button-disable

Bugz 1452/entity link property right button disable
This commit is contained in:
MiladNazeri 2019-09-13 08:08:29 -07:00 committed by GitHub
commit b8e3873e96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -800,7 +800,7 @@ QUuid EntityTreeRenderer::mousePressEvent(QMouseEvent* event) {
RayToEntityIntersectionResult rayPickResult = _getPrevRayPickResultOperator(_mouseRayPickID);
EntityItemPointer entity;
if (rayPickResult.intersects && (entity = getTree()->findEntityByID(rayPickResult.entityID))) {
if (!EntityTree::areEntityClicksCaptured()) {
if (!EntityTree::areEntityClicksCaptured() && event->button() == Qt::MouseButton::LeftButton) {
auto properties = entity->getProperties();
QString urlString = properties.getHref();
QUrl url = QUrl(urlString, QUrl::StrictMode);