Skip to content

Commit c2b96ec

Browse files
committed
Re-enabling doesn't work yet
1 parent af2e8af commit c2b96ec

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Interface/Application/NetworkEditor.cc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1282,11 +1282,20 @@ void NetworkEditor::disableViewScenes()
12821282
c->setDisabled(true);
12831283
}
12841284
}
1285+
//TODO: doesn't work yet.
1286+
//Application::Instance().controller()->connectNetworkExecutionFinished([this](int code){ enableViewScenes(); });
12851287
}
12861288

12871289
void NetworkEditor::enableViewScenes()
12881290
{
1289-
1291+
Q_FOREACH(QGraphicsItem* item, scene_->items())
1292+
{
1293+
if (auto c = dynamic_cast<ConnectionLine*>(item))
1294+
{
1295+
if (c->id().id_.find("ViewScene") != std::string::npos)
1296+
c->setDisabled(false);
1297+
}
1298+
}
12901299
}
12911300

12921301
size_t NetworkEditor::numModules() const

0 commit comments

Comments
 (0)