1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Fix a typo in function name

This commit is contained in:
a68366 2016-01-18 16:50:11 +03:00
parent dba7a53ec7
commit 65421e8992
4 changed files with 5 additions and 5 deletions

View File

@ -82,7 +82,7 @@ void OfflineMsgEngine::deliverOfflineMsgs()
return; return;
QMap<int64_t, MsgPtr> msgs = undeliveredMsgs; QMap<int64_t, MsgPtr> msgs = undeliveredMsgs;
removeAllReciepts(); removeAllReceipts();
undeliveredMsgs.clear(); undeliveredMsgs.clear();
for (auto iter = msgs.begin(); iter != msgs.end(); ++iter) 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); QMutexLocker ml(&mutex);

View File

@ -43,7 +43,7 @@ public:
public slots: public slots:
void deliverOfflineMsgs(); void deliverOfflineMsgs();
void removeAllReciepts(); void removeAllReceipts();
private: private:
struct MsgPtr { struct MsgPtr {

View File

@ -110,7 +110,7 @@ ChatForm::ChatForm(Friend* chatFriend)
connect(msgEdit, &ChatTextEdit::enterPressed, this, &ChatForm::onSendTriggered); connect(msgEdit, &ChatTextEdit::enterPressed, this, &ChatForm::onSendTriggered);
connect(msgEdit, &ChatTextEdit::textChanged, this, &ChatForm::onTextEditChanged); connect(msgEdit, &ChatTextEdit::textChanged, this, &ChatForm::onTextEditChanged);
connect(core, &Core::fileSendFailed, this, &ChatForm::onFileSendFailed); 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, [=]{ connect(&typingTimer, &QTimer::timeout, this, [=]{
Core::getInstance()->sendTyping(f->getFriendID(), false); Core::getInstance()->sendTyping(f->getFriendID(), false);
isTyping = false; isTyping = false;

View File

@ -1848,7 +1848,7 @@ void Widget::clearAllReceipts()
{ {
QList<Friend*> frnds = FriendList::getAllFriends(); QList<Friend*> frnds = FriendList::getAllFriends();
for (Friend *f : frnds) for (Friend *f : frnds)
f->getChatForm()->getOfflineMsgEngine()->removeAllReciepts(); f->getChatForm()->getOfflineMsgEngine()->removeAllReceipts();
} }
void Widget::reloadTheme() void Widget::reloadTheme()