From b9382aefb2c2fec02002516acca9e0c5bcef763e Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 22 Oct 2013 13:22:25 +0200 Subject: [PATCH] ensure waitingPanels doesn't have duplicates --- src/shell/shellcorona.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shell/shellcorona.cpp b/src/shell/shellcorona.cpp index 527c4e8c1..a8598663d 100644 --- a/src/shell/shellcorona.cpp +++ b/src/shell/shellcorona.cpp @@ -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);