TreeItem: make sure not to access destructed IrcBuffer
TextInput: keep track of the buffer with QPointer
Fix TreeDelegate color