mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
revert(chatlog): partially revert "prevent invalid history access"
This partially reverts commit e3e6e1d9c4
.
This commit is contained in:
parent
e18725c966
commit
5fc273da94
|
@ -995,10 +995,6 @@ void GenericChatForm::searchInBegin(const QString& phrase, const ParameterSearch
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (messages.size() == 0) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (chatLog.getNextIdx() == messages.rbegin()->first + 1) {
|
if (chatLog.getNextIdx() == messages.rbegin()->first + 1) {
|
||||||
disableSearchText();
|
disableSearchText();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user