From 42d79246659e7d964cdcc3fe04f48fdf8410ad89 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Wed, 14 Sep 2016 15:42:44 +0100 Subject: [PATCH] Restore panel config on containment switch Summary: ::restore uses ::config which changes depending on the containment used. calling positionPanel before restoring, means we're loading garbage values. This was hidden as location was set just after which did call restore(). Saves one incorrect resize. Test Plan: qDebug + starting plasmashell Reviewers: Marco Martin Subscribers: --- shell/panelview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/panelview.cpp b/shell/panelview.cpp index 5e994dead..13cf79b6d 100644 --- a/shell/panelview.cpp +++ b/shell/panelview.cpp @@ -1024,7 +1024,7 @@ void PanelView::themeChanged() void PanelView::containmentChanged() { - positionPanel(); + restore(); connect(containment(), SIGNAL(statusChanged(Plasma::Types::ItemStatus)), SLOT(statusChanged(Plasma::Types::ItemStatus))); connect(containment(), &Plasma::Applet::appletDeleted, this, [this] { //containment()->destroyed() is true only when the user deleted it