[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [plasma-framework] plasma: only save if the KPluginInfo is valid (otherwise we have a dud)
From:       Aaron Seigo <aseigo () kde ! org>
Date:       2013-02-13 20:40:37
Message-ID: 20130213204037.799DEA6091 () git ! kde ! org
[Download RAW message or body]

Git commit ec1c4d18fc28e05df59061127ab1710f4773c01a by Aaron Seigo.
Committed on 13/02/2013 at 21:38.
Pushed by aseigo into branch 'master'.

only save if the KPluginInfo is valid (otherwise we have a dud)

M  +1    -1    plasma/applet.cpp

http://commits.kde.org/plasma-framework/ec1c4d18fc28e05df59061127ab1710f477=
3c01a

diff --git a/plasma/applet.cpp b/plasma/applet.cpp
index 50b7266..511d07a 100644
--- a/plasma/applet.cpp
+++ b/plasma/applet.cpp
@@ -199,7 +199,7 @@ uint Applet::id() const
 =

 void Applet::save(KConfigGroup &g) const
 {
-    if (d->transient) {
+    if (d->transient || !d->appletDescription.isValid()) {
         return;
     }
 =


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic