1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-22 01:34:21 +00:00

PopupMenu fix.

This commit is contained in:
Julian Storer 2010-06-03 10:51:57 +01:00
parent 0c27487eca
commit 83fb316e32
2 changed files with 6 additions and 2 deletions

View file

@ -68132,9 +68132,11 @@ public:
void inputAttemptWhenModal()
{
Component::SafePointer<Component> deletionChecker (this);
timerCallback();
if (! isOverAnyMenu())
if (deletionChecker != 0 && ! isOverAnyMenu())
{
if (componentAttachedTo != 0)
{

View file

@ -549,9 +549,11 @@ public:
void inputAttemptWhenModal()
{
Component::SafePointer<Component> deletionChecker (this);
timerCallback();
if (! isOverAnyMenu())
if (deletionChecker != 0 && ! isOverAnyMenu())
{
if (componentAttachedTo != 0)
{