Fix strange ui freeze on macosx
Merge pull request #1 from davibe/osx_fix

Fix strange ui freeze on macosx