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

List:       kde-commits
Subject:    KDE/kdebase/apps/plasma/applets/folderview
From:       Fredrik Höglund <fredrik () kde ! org>
Date:       2010-02-02 17:22:17
Message-ID: 1265131337.872277.21710.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1084193 by fredrik:

Don't add drop actions for creating applets when the containment is immutable.
Fixed for: KDE 4.4
BUG: 219638


 M  +1 -1      iconview.cpp  


--- trunk/KDE/kdebase/apps/plasma/applets/folderview/iconview.cpp #1084192:1084193
@@ -2083,7 +2083,7 @@
         QString mimeName = mime->name();
         KPluginInfo::List appletList = Plasma::Applet::listAppletInfoForMimetype(mimeName);
 
-        if (!appletList.isEmpty()) {
+        if (containment->immutability() == Plasma::Mutable && !appletList.isEmpty()) {
             foreach (const KPluginInfo &info, appletList) {
                 QAction *action = new QAction(info.name(), actions);
                 action->setData(info.pluginName());
[prev in list] [next in list] [prev in thread] [next in thread] 

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