Skip to content

Commit

Permalink
Allow execute context menu on tabdiagram scrollbars
Browse files Browse the repository at this point in the history
  • Loading branch information
ra3xdh committed Oct 31, 2024
1 parent 86c6454 commit 7cf6ecf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qucs/mouseactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 7cf6ecf

Please sign in to comment.