ensure waitingPanels doesn't have duplicates
This commit is contained in:
parent
973f4a08a3
commit
b9382aefb2
@ -405,7 +405,9 @@ void ShellCorona::updateScreenOwner(int wasScreen, int isScreen, Plasma::Contain
|
||||
containment->formFactor() == Plasma::Types::Vertical) {
|
||||
|
||||
if (isScreen >= 0) {
|
||||
d->waitingPanels << containment;
|
||||
if (!d->waitingPanels.contains(containment)) {
|
||||
d->waitingPanels << containment;
|
||||
}
|
||||
} else {
|
||||
if (d->panelViews.contains(containment)) {
|
||||
d->panelViews[containment]->setContainment(0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user