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

Fixes #548.