Make clearing reply not remove your text
This commit is contained in:
@@ -106,7 +106,7 @@ Loader {
|
||||
text: i18n("Cancel")
|
||||
display: AbstractButton.IconOnly
|
||||
onClicked: {
|
||||
ChatBoxHelper.clearEditReply();
|
||||
ChatBoxHelper.clear();
|
||||
root.replyCancelled();
|
||||
}
|
||||
ToolTip.text: text
|
||||
|
||||
@@ -131,8 +131,8 @@ void ChatBoxHelper::clear()
|
||||
setEditContent(QString());
|
||||
setReplyEventId(QString());
|
||||
setReplyEventContent(QString());
|
||||
setAttachmentPath(QString());
|
||||
setReplyUser(QVariant());
|
||||
setAttachmentPath(QString());
|
||||
}
|
||||
|
||||
void ChatBoxHelper::edit(const QString &message, const QString &formattedBody, const QString &eventId)
|
||||
@@ -149,6 +149,7 @@ void ChatBoxHelper::clearEditReply()
|
||||
setReplyEventId(QString());
|
||||
setReplyEventContent(QString());
|
||||
setReplyUser(QVariant());
|
||||
setAttachmentPath(QString());
|
||||
Q_EMIT shouldClearText();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user