Skip to content

Commit

Permalink
Fix a crash on closing the MaterialEditor due to the connection not b…
Browse files Browse the repository at this point in the history
…eing cleared.
  • Loading branch information
codereader committed Jun 16, 2021
1 parent 17ac50f commit 5cd128a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radiant/ui/materials/editor/MaterialEditor.cpp
Expand Up @@ -1484,7 +1484,7 @@ void MaterialEditor::handleMaterialSelectionChange()
{
_material = GlobalMaterialManager().getMaterial(_treeView->GetSelectedFullname());

_material->sig_materialChanged().connect([this]()
_materialChanged = _material->sig_materialChanged().connect([this]()
{
updateSourceView();
updateMaterialTreeItem();
Expand Down

0 comments on commit 5cd128a

Please sign in to comment.