Skip to content

Commit 4d653a3

Browse files
committed
Clean up. Closes #1639
1 parent d7a9350 commit 4d653a3

File tree

3 files changed

+6
-19
lines changed

3 files changed

+6
-19
lines changed

src/Interface/Application/Connection.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ void ConnectionLine::addSubnetCompanion(PortWidget* subnetPort)
386386

387387
subnetCompanion_->isCompanion_ = true;
388388
subnetCompanion_->trackNodes();
389+
subnetCompanion_->setVisible(true);
389390
}
390391

391392
void ConnectionLine::deleteCompanion()

src/Interface/Application/SCIRunMainWindow.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1818,7 +1818,7 @@ void SCIRunMainWindow::addModuleToWindowList(const QString& modId, bool hasUI)
18181818

18191819
connect(showAction, SIGNAL(triggered()), networkEditor_, SLOT(subnetMenuActionTriggered()));
18201820
connect(renameAction, SIGNAL(triggered()), networkEditor_, SLOT(subnetMenuActionTriggered()));
1821-
qDebug() << "add" << modId;
1821+
//qDebug() << "add" << modId;
18221822
currentSubnetActions_.insert(modId, subnetMenu);
18231823
menuCurrentSubnets_->addMenu(subnetMenu);
18241824
}
@@ -1827,7 +1827,7 @@ void SCIRunMainWindow::addModuleToWindowList(const QString& modId, bool hasUI)
18271827
void SCIRunMainWindow::removeModuleFromWindowList(const ModuleId& modId)
18281828
{
18291829
auto name = QString::fromStdString(modId.id_);
1830-
qDebug() << "remove" << name;
1830+
//qDebug() << "remove" << name;
18311831
auto action = currentModuleActions_[name];
18321832
menuCurrent_->removeAction(action);
18331833
currentModuleActions_.remove(name);

src/Interface/Application/Subnetworks.cc

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -223,23 +223,9 @@ void NetworkEditor::subnetMenuActionTriggered()
223223
QLineEdit::Normal, subnetNameMap_[subnetId.toStdString()], &ok);
224224
if (ok && !text.isEmpty())
225225
{
226-
qDebug() << "how to rename subnet";
226+
//qDebug() << "how to rename subnet";
227227
}
228-
229-
230228
}
231-
// Q_FOREACH(QGraphicsItem* item, scene_->items())
232-
// {
233-
// auto module = getModule(item);
234-
// if (module && module->getModuleId() == action->text().toStdString())
235-
// {
236-
// if (module->guiVisible())
237-
// module->hideUI();
238-
// else
239-
// module->showUI();
240-
// break;
241-
// }
242-
// }
243229
}
244230

245231
QRectF NetworkEditor::visibleRect() const
@@ -849,9 +835,9 @@ void SubnetModuleConnector::moduleAddedToSubnet(const std::string& s, ModuleHand
849835
{
850836
if (signalFromSubnet(sender()) && subnet_->containsModule(module->get_id().id_))
851837
{
852-
qDebug() << "was:" << module_->underlyingModules_.size();
838+
//qDebug() << "was:" << module_->underlyingModules_.size();
853839
module_->underlyingModules_.push_back(module);
854-
qDebug() << "now:" << module_->underlyingModules_.size() << "added" << s.c_str();
840+
//qDebug() << "now:" << module_->underlyingModules_.size() << "added" << s.c_str();
855841
}
856842
}
857843

0 commit comments

Comments
 (0)