According to http://doc.qt.digia.com/stable/qapplication.html#commitData we must not exit inside commitData, which we do according to http://doc.qt.digia.com/stable/signalsandslots.html#signals