Skip to content

Commit

Permalink
Merge branch 'hotfix/0.7.2b'
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeeter committed Jan 16, 2015
2 parents 7a8484d + a01361f commit fe1f7cc
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/ui/viewport/viewport_scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ void ViewportScene::makeUIfor(Node* n)
{
auto c = makeControlFor(n);
controls[n] = c;
connect(c, &Control::glowChanged,
this, &ViewportScene::onGlowChange);
connect(c, &Control::glowChanged,
this, &ViewportScene::glowChanged);
if (c)
{
connect(c, &Control::glowChanged,
this, &ViewportScene::onGlowChange);
connect(c, &Control::glowChanged,
this, &ViewportScene::glowChanged);
}

for (auto itr = scenes.begin(); itr != scenes.end(); ++itr)
{
Expand Down Expand Up @@ -125,7 +128,8 @@ void ViewportScene::onDatumsChanged(Node* n)
void ViewportScene::onGlowChange(Node* n, bool g)
{
Q_ASSERT(controls.contains(n));
controls[n]->setGlow(g);
if (controls[n])
controls[n]->setGlow(g);
}

////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit fe1f7cc

Please sign in to comment.