~aleteoryx/muditaos

a53b60952fde46c79bf27f648337d073fb52c28f — Piotr Tański 4 years ago 0134577
[EGD-7071] Text paste fixed

Pasting a text into a new SMS content fixed.
1 files changed, 4 insertions(+), 1 deletions(-)

M module-apps/application-messages/windows/NewMessage.cpp
M module-apps/application-messages/windows/NewMessage.cpp => module-apps/application-messages/windows/NewMessage.cpp +4 -1
@@ 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<PhonebookSearchRequest>(),