diff --git a/Telegram/SourceFiles/settings/settings_information.cpp b/Telegram/SourceFiles/settings/settings_information.cpp index 298fcec9b7..e2ff0fd442 100644 --- a/Telegram/SourceFiles/settings/settings_information.cpp +++ b/Telegram/SourceFiles/settings/settings_information.cpp @@ -690,13 +690,13 @@ void SetupAccountsWrap( } else if (which != Qt::RightButton) { return; } - const auto addAction = Ui::Menu::CreateAddActionCallback( - state->menu); if (!state->menu && IsAltShift(raw->clickModifiers()) && !locked) { state->menu = base::make_unique_q( raw, st::popupMenuWithIcons); - Window::MenuAddMarkAsReadAllChatsAction(window, addAction); + Window::MenuAddMarkAsReadAllChatsAction( + window, + Ui::Menu::CreateAddActionCallback(state->menu)); state->menu->popup(QCursor::pos()); return; } @@ -707,6 +707,8 @@ void SetupAccountsWrap( state->menu = base::make_unique_q( raw, st::popupMenuWithIcons); + const auto addAction = Ui::Menu::CreateAddActionCallback( + state->menu); addAction(tr::lng_profile_copy_phone(tr::now), [=] { const auto phone = rpl::variable( Info::Profile::PhoneValue(session->user()));