From 7cf6ecf498aa3203f97bc29e53bf456cac2e0c2d Mon Sep 17 00:00:00 2001 From: Vadim Kuznetsov Date: Thu, 31 Oct 2024 09:55:52 +0300 Subject: [PATCH 1/2] 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)) From ffd7f6622e164a8c928d57613fc94e72a5680c50 Mon Sep 17 00:00:00 2001 From: Vadim Kuznetsov Date: Thu, 31 Oct 2024 10:40:56 +0300 Subject: [PATCH 2/2] Fix ASCO execution error --- qucs/dialogs/simmessage.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/qucs/dialogs/simmessage.cpp b/qucs/dialogs/simmessage.cpp index 0dbdb2b16..defb46961 100644 --- a/qucs/dialogs/simmessage.cpp +++ b/qucs/dialogs/simmessage.cpp @@ -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