Skip to content

Commit

Permalink
Fixed bug when dragging tab out of window with search panel open
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Jan 17, 2024
1 parent 4314bd8 commit 025bd23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Sidebar/SearchPanel.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class SearchPanel : public Component, public KeyListener, public Timer
void timerCallback() override
{
auto* cnv = editor->getCurrentCanvas();
if(currentCanvas.getComponent() != cnv || (cnv && cnv->needsSearchUpdate))
if(cnv && (currentCanvas.getComponent() != cnv || cnv->needsSearchUpdate))
{
currentCanvas = cnv;
currentCanvas->needsSearchUpdate = false;
Expand Down

0 comments on commit 025bd23

Please sign in to comment.