Possible fix for crash on Permissions click in profile
This commit is contained in:
parent
d104608fbf
commit
c8b0209e8e
1 changed files with 2 additions and 1 deletions
|
|
@ -951,11 +951,12 @@ void ManageFiller::addPeerPermissions(
|
||||||
}();
|
}();
|
||||||
|
|
||||||
if (canEditPermissions) {
|
if (canEditPermissions) {
|
||||||
|
const auto controller = _controller;
|
||||||
auto button = AddActionButton(
|
auto button = AddActionButton(
|
||||||
_wrap,
|
_wrap,
|
||||||
tr::lng_manage_peer_permissions(),
|
tr::lng_manage_peer_permissions(),
|
||||||
rpl::single(true),
|
rpl::single(true),
|
||||||
[=] { ShowEditPermissions(_controller, peer); }
|
[=] { ShowEditPermissions(controller, peer); }
|
||||||
);
|
);
|
||||||
object_ptr<FloatingIcon>(
|
object_ptr<FloatingIcon>(
|
||||||
button,
|
button,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue