diff --git a/autotests/coronatest.cpp b/autotests/coronatest.cpp index 525b70f7e..378a4b7d1 100644 --- a/autotests/coronatest.cpp +++ b/autotests/coronatest.cpp @@ -196,7 +196,7 @@ void CoronaTest::addRemoveApplets() //remove action present QVERIFY(m_corona->containments().first()->applets().first()->actions()->action("remove")); //kill an applet - m_corona->containments().first()->applets().first()->actions()->action("remove")->trigger(); + m_corona->containments().first()->applets().first()->destroy(); QSignalSpy spy(m_corona->containments().first()->applets().first(), SIGNAL(destroyed())); QVERIFY(spy.wait(1000)); diff --git a/src/plasma/private/applet_p.cpp b/src/plasma/private/applet_p.cpp index 2a3cc7a95..a4f7c1c2c 100644 --- a/src/plasma/private/applet_p.cpp +++ b/src/plasma/private/applet_p.cpp @@ -222,7 +222,7 @@ void AppletPrivate::showConfigurationRequiredMessage(bool show, const QString &r void AppletPrivate::askDestroy() { - if (q->immutability() != Types::Mutable || transient || !started) { + if (q->immutability() != Types::Mutable || !started) { return; //don't double delete }