bring config view to fron if already existing
Change-Id: I47bfed3ee8e327e78e046428abececd90c070df8
This commit is contained in:
parent
148e0022f6
commit
bd1d632da0
@ -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) {
|
||||||
configView->hide();
|
if (configView->applet() != applet) {
|
||||||
configView->deleteLater();
|
configView->hide();
|
||||||
|
configView->deleteLater();
|
||||||
|
} else {
|
||||||
|
configView->requestActivate();
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!applet || !applet->containment()) {
|
if (!applet || !applet->containment()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user