Version 1.1.10: Fix build for Xcode and GCC.

This commit is contained in:
John Preston 2017-07-04 19:17:44 +03:00
parent 91a6853f3c
commit 6d3a6d20b5
2 changed files with 1 additions and 7 deletions

View File

@ -399,12 +399,6 @@ void FilterBox::refreshButtons() {
addButton(langFactory(lng_cancel), [this] { closeBox(); });
}
template <typename Widget>
QPointer<Widget> FilterBox::addControl(object_ptr<Widget> row) {
Expects(_inner != nullptr);
return _inner->addControl(std::move(row));
}
void FilterBox::resizeToContent() {
_inner->resizeToWidth(st::boxWideWidth);
setDimensions(_inner->width(), _inner->height());

View File

@ -484,7 +484,7 @@ void GroupMembersWidget::setItemFlags(Item *item, ChannelData *megagroup) {
}
if (item->peer->isSelf()) {
item->hasRemoveLink = false;
} else if (megagroup->amCreator() || megagroup->canBanMembers() && ((adminState == AdminState::None) || adminCanEdit)) {
} else if (megagroup->amCreator() || (megagroup->canBanMembers() && ((adminState == AdminState::None) || adminCanEdit))) {
item->hasRemoveLink = true;
} else {
item->hasRemoveLink = false;