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