summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@suse.com>2012-01-06 00:34:10 +0100
committerThorsten Behrens <tbehrens@suse.com>2012-01-06 00:44:22 +0100
commit287db243f944a54e3b368c96b3fa62e168056d3e (patch)
tree6b9f2cf29ee0976fe8dfd7bf2cf4cf715e77780a /vcl
parent71f9c3a5c108161661d047beb7d63352622a0474 (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.cxx4
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;
}