From 7cf6ecf498aa3203f97bc29e53bf456cac2e0c2d Mon Sep 17 00:00:00 2001 From: Vadim Kuznetsov Date: Thu, 31 Oct 2024 09:55:52 +0300 Subject: [PATCH] Allow execute context menu on tabdiagram scrollbars --- qucs/mouseactions.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qucs/mouseactions.cpp b/qucs/mouseactions.cpp index 7d1a19175..ca5acfcd9 100644 --- a/qucs/mouseactions.cpp +++ b/qucs/mouseactions.cpp @@ -2157,7 +2157,8 @@ void MouseActions::editElement(Schematic *Doc, QMouseEvent *Event) case isDiagram: dia = (Diagram *) focusElement; - if (dia->Name.at(0) == 'T') { // don't open dialog on scrollbar + if (dia->Name.at(0) == 'T' // check only on double click + && Event->type() == QMouseEvent::MouseButtonDblClick) { // don't open dialog on scrollbar if (dia->Name == "Time") { if (dia->cy < int(fY)) { if (((TimingDiagram *) focusElement)->scroll(MAx1))