bring config view to fron if already existing

Change-Id: I47bfed3ee8e327e78e046428abececd90c070df8
This commit is contained in:
Marco Martin 2015-03-11 14:39:00 +01:00
parent 148e0022f6
commit bd1d632da0

View File

@ -155,8 +155,13 @@ Plasma::Types::FormFactor ViewPrivate::formFactor() const
void ViewPrivate::showConfigurationInterface(Plasma::Applet *applet) void ViewPrivate::showConfigurationInterface(Plasma::Applet *applet)
{ {
if (configView) { if (configView) {
if (configView->applet() != applet) {
configView->hide(); configView->hide();
configView->deleteLater(); configView->deleteLater();
} else {
configView->requestActivate();
return;
}
} }
if (!applet || !applet->containment()) { if (!applet || !applet->containment()) {