Skip to content

Commit

Permalink
#5097: Maybe not directly related to the described issue, but the loc…
Browse files Browse the repository at this point in the history
…k should have a name to prevent it from being destructed immediately after construction.
  • Loading branch information
codereader committed Nov 19, 2020
1 parent 01dbfae commit 41d4a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radiant/ui/layers/LayerControl.cpp
Expand Up @@ -104,7 +104,7 @@ wxToggleButton* LayerControl::getToggle()

void LayerControl::update()
{
util::ScopedBoolLock{_updateActive};
util::ScopedBoolLock lock{_updateActive};

if (!GlobalMapModule().getRoot())
{
Expand Down

0 comments on commit 41d4a84

Please sign in to comment.