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:44:22 +0100 |
commit | 287db243f944a54e3b368c96b3fa62e168056d3e (patch) | |
tree | 6b9f2cf29ee0976fe8dfd7bf2cf4cf715e77780a /vcl | |
parent | 71f9c3a5c108161661d047beb7d63352622a0474 (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.
Diffstat (limited to 'vcl')
-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 0898e67d0f11..0926c6fc96d9 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; } |