Skip to content

Commit

Permalink
Fix #4462: LayerControlDialog's Hide/Show All button is not graying o…
Browse files Browse the repository at this point in the history
…ut correctly
  • Loading branch information
codereader committed Jan 7, 2017
1 parent 916c0cb commit 63cfe87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions radiant/ui/layers/LayerControlDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ void LayerControlDialog::update()
_rescanSelectionOnIdle = true;

// Update the show/hide all button sensitiveness
std::size_t numVisible;
std::size_t numHidden;
std::size_t numVisible = 0;
std::size_t numHidden = 0;

GlobalLayerSystem().foreachLayer([&](int layerID, const std::string& layerName)
{
Expand Down

0 comments on commit 63cfe87

Please sign in to comment.