I'm reworking this via your edit suggestion, which is easy to implement.
But I'm asking myself, where or when the TransactionTableModel::TransactionTableModel() constructor is called? AFAIK there are no NULL pointer checks for ``walletModel``, which seems strange!