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()) {
|
if (hasCopyRestriction()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
for (const auto [itemId, selection] : _selected) {
|
for (const auto &[itemId, selection] : _selected) {
|
||||||
if (const auto item = session().data().message(itemId)) {
|
if (const auto item = session().data().message(itemId)) {
|
||||||
if (item->forbidsForward()) {
|
if (item->forbidsForward()) {
|
||||||
return true;
|
return true;
|
||||||
|
@ -1202,7 +1202,7 @@ bool ListWidget::hasCopyRestrictionForSelected() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ListWidget::showCopyRestrictionForSelected() {
|
bool ListWidget::showCopyRestrictionForSelected() {
|
||||||
for (const auto [itemId, selection] : _selected) {
|
for (const auto &[itemId, selection] : _selected) {
|
||||||
if (showCopyRestriction(session().data().message(itemId))) {
|
if (showCopyRestriction(session().data().message(itemId))) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue