diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-07-08 02:27:09 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-07-08 02:27:09 -0400 |
commit | 849ebf17f173b64bc981f8e641863b6c253f10d0 (patch) | |
tree | 94bce47b8cf1f39d21e8808f53ac39df6156d0cf /src/components/chatlist.cpp | |
parent | 41776fbd023df1c4a70ffa46e8f81c6aea9f7b7f (diff) | |
download | abaddon-portaudio-849ebf17f173b64bc981f8e641863b6c253f10d0.tar.gz abaddon-portaudio-849ebf17f173b64bc981f8e641863b6c253f10d0.zip |
try to properly clear chat list
im sure this will break something somehow
Diffstat (limited to 'src/components/chatlist.cpp')
-rw-r--r-- | src/components/chatlist.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/chatlist.cpp b/src/components/chatlist.cpp index 9bd8daf..d2995ee 100644 --- a/src/components/chatlist.cpp +++ b/src/components/chatlist.cpp @@ -34,6 +34,9 @@ void ChatList::Clear() { delete *it; it++; } + m_id_to_widget.clear(); + m_num_messages = 0; + m_num_rows = 0; } void ChatList::SetActiveChannel(Snowflake id) { |