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 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))