Implemented a workaround to address an issue that got introduced with Qt 5 on OS X (closes #138).