This website works better with JavaScript.
Home
Help
Sign In
DISTRHO
/
JUCE
mirror of
https://github.com/DISTRHO/JUCE
Watch
1
Star
0
Fork
0
Code
Releases
1
Activity
Browse Source
Ensure global mouse listener is removed when SidePanel is destructed
tags/2021-05-28
ed
7 years ago
parent
400691b8e0
commit
26697f2421
1 changed files
with
2 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
modules/juce_gui_basics/layout/juce_SidePanel.cpp
+ 2
- 0
modules/juce_gui_basics/layout/juce_SidePanel.cpp
View File
@@ -50,6 +50,8 @@ SidePanel::SidePanel (StringRef title, int width, bool positionOnLeft,
SidePanel::~SidePanel()
SidePanel::~SidePanel()
{
{
Desktop::getInstance().removeGlobalMouseListener (this);
if (parent != nullptr)
if (parent != nullptr)
parent->removeComponentListener (this);
parent->removeComponentListener (this);
}
}
Write
Preview
Loading…
Cancel
Save