From a53b60952fde46c79bf27f648337d073fb52c28f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ta=C5=84ski?= Date: Fri, 2 Jul 2021 14:30:47 +0200 Subject: [PATCH] [EGD-7071] Text paste fixed Pasting a text into a new SMS content fixed. --- module-apps/application-messages/windows/NewMessage.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module-apps/application-messages/windows/NewMessage.cpp b/module-apps/application-messages/windows/NewMessage.cpp index 5f98417519fb3abf1ae311953abbc38a2a211d36..75281a4ef99ecf014eca14bed5c9c3f3a7c916b1 100644 --- a/module-apps/application-messages/windows/NewMessage.cpp +++ b/module-apps/application-messages/windows/NewMessage.cpp @@ -39,7 +39,11 @@ namespace gui if (!state) { return; } + auto currentText = _state->getText(); _state->restoreFrom(*state); + if (!currentText.empty()) { + _state->addText(currentText); + } state = nullptr; } @@ -107,7 +111,6 @@ namespace gui { // select contact only if there is no entered number if (recipient->getText().empty()) { - memento->setState(message); return app::manager::Controller::sendAction(application, app::manager::actions::ShowContacts, std::make_unique(),