Fix previewer not opening issue
Merge pull request #513 from timrae/previewFix

Fix crash when opening previewer