I have the solution.
When the subject combo box is cleared it generates an "on_subject_comboBox_currentIndexChanged()" signal with an index value of -1. The code does not check the index which means subjectItem is a NULL value which, as you have already pointed out, is what is causing the crash.
Many thanks for your help.
T@H
Bookmarks