Fixed a QtWebKit-related issue (closes #206).