mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2025-01-23 13:42:55 +08:00
Fix invalid popup windows
This commit is contained in:
parent
fe096280fc
commit
9a681f24df
@ -184,6 +184,9 @@ void ViewStatus::mousePressEvent(QMouseEvent *event)
|
|||||||
{
|
{
|
||||||
assert(event);
|
assert(event);
|
||||||
|
|
||||||
|
if (_session.get_device()->dev_inst()->mode != DSO)
|
||||||
|
return;
|
||||||
|
|
||||||
if (event->button() == Qt::LeftButton) {
|
if (event->button() == Qt::LeftButton) {
|
||||||
//BOOST_FOREACH(QRect rect, std::get<0>(_mrects)) {
|
//BOOST_FOREACH(QRect rect, std::get<0>(_mrects)) {
|
||||||
for(size_t i = 0; i < _mrects.size(); i++) {
|
for(size_t i = 0; i < _mrects.size(); i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user