From bd1d632da0a33d599a722c8324af052355380986 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 11 Mar 2015 14:39:00 +0100 Subject: [PATCH] bring config view to fron if already existing Change-Id: I47bfed3ee8e327e78e046428abececd90c070df8 --- src/plasmaquick/view.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/plasmaquick/view.cpp b/src/plasmaquick/view.cpp index 5b2dbc88c..6ab001267 100644 --- a/src/plasmaquick/view.cpp +++ b/src/plasmaquick/view.cpp @@ -155,8 +155,13 @@ Plasma::Types::FormFactor ViewPrivate::formFactor() const void ViewPrivate::showConfigurationInterface(Plasma::Applet *applet) { if (configView) { - configView->hide(); - configView->deleteLater(); + if (configView->applet() != applet) { + configView->hide(); + configView->deleteLater(); + } else { + configView->requestActivate(); + return; + } } if (!applet || !applet->containment()) {