diff options
author | Thorsten Behrens <tbehrens@suse.com> | 2012-01-06 00:34:10 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2012-01-06 00:37:12 +0100 |
commit | 2f1c17087cad93f7692c33ed5364f5ad7f16ebfb (patch) | |
tree | 07e802151d9c697bc4a7ae121528d116e8083a3c | |
parent | d6aa26c8a20e6634b0cc6e1dac6f09d3f2824919 (diff) |
Fix fdo#33816 - don't loop infinitely when using Apple Remote
Removed erratic loop condition - we simply want to check if any
frame has fullscreen flag set.
-rw-r--r-- | vcl/aqua/source/app/salinst.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/aqua/source/app/salinst.cxx b/vcl/aqua/source/app/salinst.cxx index 3df68444fbe8..dbff33c556b0 100644 --- a/vcl/aqua/source/app/salinst.cxx +++ b/vcl/aqua/source/app/salinst.cxx @@ -626,9 +626,9 @@ void AquaSalInstance::handleAppDefinedEvent( NSEvent* pEvent ) bool bIsFullScreenMode = false; std::list<AquaSalFrame*>::iterator it = pSalData->maFrames.begin(); - while( (*it) && ( (it != pSalData->maFrames.end() ) || ( (*it)->mbFullScreen == false ) ) ) + while( it != pSalData->maFrames.end() ) { - if ( ((*it)->mbFullScreen == true) ) + if ( (*it) && ((*it)->mbFullScreen == true) ) bIsFullScreenMode = true; ++it; } |