mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Destroy layers in reverse order.
This commit is contained in:
@@ -780,7 +780,8 @@ bool LayerStackWidget::takeToThirdSection() {
|
||||
}
|
||||
|
||||
void LayerStackWidget::clearLayers() {
|
||||
for (auto &layer : base::take(_layers)) {
|
||||
for (auto list = base::take(_layers); !list.empty(); list.pop_back()) {
|
||||
const auto layer = std::move(list.back());
|
||||
if (layer->inFocusChain()) {
|
||||
setFocus();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user