From 7f9166d1ae861eb8f0bbc95aeabb4adf3d7adaa4 Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Fri, 8 Jan 2021 01:01:43 +0200 Subject: [PATCH] Initialize ChatModel::searchModeActive --- src/chatmodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chatmodel.cpp b/src/chatmodel.cpp index a89a74a..4086d9a 100644 --- a/src/chatmodel.cpp +++ b/src/chatmodel.cpp @@ -105,7 +105,8 @@ bool ChatModel::MessageData::lessThan(const MessageData *message1, const Message ChatModel::ChatModel(TDLibWrapper *tdLibWrapper) : chatId(0), inReload(false), - inIncrementalUpdate(false) + inIncrementalUpdate(false), + searchModeActive(false) { this->tdLibWrapper = tdLibWrapper; connect(this->tdLibWrapper, SIGNAL(messagesReceived(QVariantList, int)), this, SLOT(handleMessagesReceived(QVariantList, int)));