Skip to content

Commit

Permalink
Merge pull request #1035 from ra3xdh/1034_fix_2
Browse files Browse the repository at this point in the history
Fixed context menu for tab diagram and ASCO execution error
  • Loading branch information
ra3xdh authored Oct 31, 2024
2 parents 86c6454 + ffd7f66 commit 71b388e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion qucs/dialogs/simmessage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,6 @@ void SimMessage::startSimulator()
QFile::link(target, tmp_qucsator);

// Modify environment variable
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
QString sep = ":";
env.insert("PATH", env.value("PATH") + sep + tmpdir);
#endif
Expand Down
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 71b388e

Please sign in to comment.