Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -512,7 +512,7 @@ QDialog* WindowScriptingInterface::createForm(const QString& title, QScriptValue · 511 unmodified lines | ||
| 512 | 512 | } else if (item.property("options").isArray()) { |
| 513 | 513 | QComboBox* combo = new QComboBox(); |
| 514 | 514 | combo->setMinimumWidth(200); |
| 515 | − qint32 options_count = item.property("options").property("length").toInt32();// .toJsonArray(); | |
| 515 | + qint32 options_count = item.property("options").property("length").toInt32(); | |
| 516 | 516 | for (qint32 i = 0; i < options_count; i++) { |
| 517 | 517 | combo->addItem(item.property("options").property(i).toString()); |
| 518 | 518 | } |