diff --git a/Telegram/SourceFiles/ui/controls/userpic_button.cpp b/Telegram/SourceFiles/ui/controls/userpic_button.cpp index 472f8e1653e6a1..cfa9ef02b3be7c 100644 --- a/Telegram/SourceFiles/ui/controls/userpic_button.cpp +++ b/Telegram/SourceFiles/ui/controls/userpic_button.cpp @@ -346,8 +346,8 @@ void UserpicButton::choosePhotoLocally() { Editor::PrepareProfilePhoto( this, _window, - editorData(ChosenType::Set), - callback(ChosenType::Set), + editorData(type), + callback(type), qvariant_cast(data->imageData())); }); _menu->addAction(