diff --git a/source/palette_brushlist.cpp b/source/palette_brushlist.cpp index e2d3c51d..a82cbffe 100644 --- a/source/palette_brushlist.cpp +++ b/source/palette_brushlist.cpp @@ -380,7 +380,6 @@ void BrushPanel::OnClickListBoxRow(wxCommandEvent &event) { ASSERT(brushbox); const auto index = event.GetSelection(); - if (const auto &paletteWindow = g_gui.GetParentWindowByType(this); paletteWindow != nullptr) { g_gui.ActivatePalette(paletteWindow); }