communi / libcommuni

A cross-platform IRC framework for Qt
https://communi.github.io
BSD 3-Clause "New" or "Revised" License
84 stars 37 forks source link

Make sure to remove buffer from channel list when buffer get destroyed #97

Closed renatofilho closed 3 years ago

renatofilho commented 3 years ago

At the moment that buffer model checks for the isChannel(qobject_cast) it does not work anymore because the channel class destructor was already called.

Instead of qobject_cast use now an enum buffer type flag, that will keep valid until the base buffer object gets destroyed.