From 65421e8992262e36578c5cb37280629bc6329562 Mon Sep 17 00:00:00 2001 From: a68366 Date: Mon, 18 Jan 2016 16:50:11 +0300 Subject: [PATCH] Fix a typo in function name --- src/persistence/offlinemsgengine.cpp | 4 ++-- src/persistence/offlinemsgengine.h | 2 +- src/widget/form/chatform.cpp | 2 +- src/widget/widget.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/persistence/offlinemsgengine.cpp b/src/persistence/offlinemsgengine.cpp index 683bc7620..65527946f 100644 --- a/src/persistence/offlinemsgengine.cpp +++ b/src/persistence/offlinemsgengine.cpp @@ -82,7 +82,7 @@ void OfflineMsgEngine::deliverOfflineMsgs() return; QMap msgs = undeliveredMsgs; - removeAllReciepts(); + removeAllReceipts(); undeliveredMsgs.clear(); for (auto iter = msgs.begin(); iter != msgs.end(); ++iter) @@ -106,7 +106,7 @@ void OfflineMsgEngine::deliverOfflineMsgs() } } -void OfflineMsgEngine::removeAllReciepts() +void OfflineMsgEngine::removeAllReceipts() { QMutexLocker ml(&mutex); diff --git a/src/persistence/offlinemsgengine.h b/src/persistence/offlinemsgengine.h index 386262a5c..933eb3f51 100644 --- a/src/persistence/offlinemsgengine.h +++ b/src/persistence/offlinemsgengine.h @@ -43,7 +43,7 @@ public: public slots: void deliverOfflineMsgs(); - void removeAllReciepts(); + void removeAllReceipts(); private: struct MsgPtr { diff --git a/src/widget/form/chatform.cpp b/src/widget/form/chatform.cpp index ac970f844..50f9e8092 100644 --- a/src/widget/form/chatform.cpp +++ b/src/widget/form/chatform.cpp @@ -110,7 +110,7 @@ ChatForm::ChatForm(Friend* chatFriend) connect(msgEdit, &ChatTextEdit::enterPressed, this, &ChatForm::onSendTriggered); connect(msgEdit, &ChatTextEdit::textChanged, this, &ChatForm::onTextEditChanged); connect(core, &Core::fileSendFailed, this, &ChatForm::onFileSendFailed); - connect(this, &ChatForm::chatAreaCleared, getOfflineMsgEngine(), &OfflineMsgEngine::removeAllReciepts); + connect(this, &ChatForm::chatAreaCleared, getOfflineMsgEngine(), &OfflineMsgEngine::removeAllReceipts); connect(&typingTimer, &QTimer::timeout, this, [=]{ Core::getInstance()->sendTyping(f->getFriendID(), false); isTyping = false; diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index 0f92883e0..7501ab776 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -1848,7 +1848,7 @@ void Widget::clearAllReceipts() { QList frnds = FriendList::getAllFriends(); for (Friend *f : frnds) - f->getChatForm()->getOfflineMsgEngine()->removeAllReciepts(); + f->getChatForm()->getOfflineMsgEngine()->removeAllReceipts(); } void Widget::reloadTheme()