From 5fc273da94966d127ab2627ca5f6bd6f0eed3ed8 Mon Sep 17 00:00:00 2001 From: Anthony Bilinski Date: Sat, 4 Apr 2020 22:39:02 -0700 Subject: [PATCH] revert(chatlog): partially revert "prevent invalid history access" This partially reverts commit e3e6e1d9c4e22d6f090f153628677ad427cf4900. --- src/widget/form/genericchatform.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/widget/form/genericchatform.cpp b/src/widget/form/genericchatform.cpp index 83299c260..5b6fab4bb 100644 --- a/src/widget/form/genericchatform.cpp +++ b/src/widget/form/genericchatform.cpp @@ -995,10 +995,6 @@ void GenericChatForm::searchInBegin(const QString& phrase, const ParameterSearch return; } - if (messages.size() == 0) { - return; - } - if (chatLog.getNextIdx() == messages.rbegin()->first + 1) { disableSearchText(); } else {