Beta version 3.2.6: Fix build on macOS.
This commit is contained in:
parent
57340f9514
commit
9360f1f970
|
@ -1191,7 +1191,7 @@ bool ListWidget::hasCopyRestrictionForSelected() const {
|
|||
if (hasCopyRestriction()) {
|
||||
return true;
|
||||
}
|
||||
for (const auto [itemId, selection] : _selected) {
|
||||
for (const auto &[itemId, selection] : _selected) {
|
||||
if (const auto item = session().data().message(itemId)) {
|
||||
if (item->forbidsForward()) {
|
||||
return true;
|
||||
|
@ -1202,7 +1202,7 @@ bool ListWidget::hasCopyRestrictionForSelected() const {
|
|||
}
|
||||
|
||||
bool ListWidget::showCopyRestrictionForSelected() {
|
||||
for (const auto [itemId, selection] : _selected) {
|
||||
for (const auto &[itemId, selection] : _selected) {
|
||||
if (showCopyRestriction(session().data().message(itemId))) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue