Fixed "Open Recent..." crash bug in PySide builds.

Fixes #548.
Merge pull request #811 from johnhaddon/openRecentCrashFix

Fixed "Open Recent..." crash bug in PySide builds.