Fixed segmentation faults by commenting layoutAboutToBeChanged.emit()