From bb15fc138c5012a7e4afb0c89e57d7df4e5b8581 Mon Sep 17 00:00:00 2001 From: David Rowe Date: Sat, 15 Nov 2014 09:28:40 -0800 Subject: [PATCH] Fix Bandwidth Details dialog opening if click meter's pos when UI hidden --- interface/src/Application.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index f890baff3d..31be016380 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -1555,6 +1555,8 @@ void Application::checkBandwidthMeterClick() { // ... to be called upon button release if (Menu::getInstance()->isOptionChecked(MenuOption::Bandwidth) && + Menu::getInstance()->isOptionChecked(MenuOption::Stats) && + Menu::getInstance()->isOptionChecked(MenuOption::UserInterface) && glm::compMax(glm::abs(glm::ivec2(_mouseX - _mouseDragStartedX, _mouseY - _mouseDragStartedY))) <= BANDWIDTH_METER_CLICK_MAX_DRAG_LENGTH && _bandwidthMeter.isWithinArea(_mouseX, _mouseY, _glWidget->width(), _glWidget->height())) {