~aleteoryx/muditaos

742c8c3e32648059e6a200c44f964496d3270d48 — Piotr Tański 4 years ago 11ab62a
[EGD-7671] Break the windows loop in the phonebook

The problem occurs when a user removes a contact from sms thread.
It's not possible to get out of the phonebook app.
1 files changed, 4 insertions(+), 2 deletions(-)

M module-apps/application-phonebook/windows/PhonebookContactOptions.cpp
M module-apps/application-phonebook/windows/PhonebookContactOptions.cpp => module-apps/application-phonebook/windows/PhonebookContactOptions.cpp +4 -2
@@ 110,10 110,12 @@ namespace gui
                                dialogText,
                                "",
                                [=]() -> bool {
                                    this->application->switchWindow(gui::name::window::main_window);
                                    auto data                        = std::make_unique<SwitchData>();
                                    data->ignoreCurrentWindowOnStack = true;
                                    this->application->switchWindow(gui::name::window::main_window, std::move(data));
                                    return true;
                                }});

        metaData->ignoreCurrentWindowOnStack = true;
        application->switchWindow(gui::window::name::dialog_confirm, std::move(metaData));
        return true;
    }