Commit 3d1f3d87 authored by Zhou, Wenduo's avatar Zhou, Wenduo
Browse files

Commented out 2 uncessary and unfunctional setProperty.

parent 635eab2f
...@@ -406,8 +406,9 @@ void StartLiveDataDialog::initListenerPropLayout(const QString &listener) { ...@@ -406,8 +406,9 @@ void StartLiveDataDialog::initListenerPropLayout(const QString &listener) {
// update algorithm's properties // update algorithm's properties
if (ui.cmbInstrument->currentText().toStdString() != "") { if (ui.cmbInstrument->currentText().toStdString() != "") {
m_algorithm->setPropertyValue("Instrument", ui.cmbInstrument->currentText().toStdString()); // There is no need to set up m_algorithm property here. It is done in parseInput()
m_algorithm->setPropertyValue("Listener", listener.toStdString()); // m_algorithm->setPropertyValue("Instrument", ui.cmbInstrument->currentText().toStdString());
// m_algorithm->setPropertyValue("Listener", listener.toStdString());
// create or clear the layout // create or clear the layout
QLayout *layout = ui.listenerProps->layout(); QLayout *layout = ui.listenerProps->layout();
if (!layout) { if (!layout) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment