Skip to content

Commit

Permalink
Fixed symbol loading for Verilog-A devices #321
Browse files Browse the repository at this point in the history
  • Loading branch information
ra3xdh committed Oct 15, 2023
1 parent 6e9b78f commit 107865a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions qucs/components/vacomponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ void vacomponent::parseJson(QJsonObject json)
/// \todo Need to destroy engine?

Description = getString(json, "description");
Simulator = spicecompat::simAll;

QJsonArray propArray = json["property"].toArray();

Expand Down
1 change: 1 addition & 0 deletions qucs/qucs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,7 @@ int QucsApp::fillComboBox(bool setAll) {
CompSearch->clear(); // clear the search box, in case search was active...

Module::registerModules();
Module::registerDynamicComponents();
int idx = 0;
if (!setAll) {
CompChoose->insertItem(CompChoose->count(), QObject::tr("paintings"));
Expand Down
2 changes: 1 addition & 1 deletion qucs/qucs_actions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1463,7 +1463,7 @@ void QucsApp::slotLoadModule()

if (! Module::vaComponents.isEmpty()) {
// Register whatever is in Module::vaComponents
Module::registerDynamicComponents();
//Module::registerDynamicComponents();

// update the combobox, set new category in view
// pick up new category 'verilog-a user components' from `Module::category`
Expand Down

0 comments on commit 107865a

Please sign in to comment.