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

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/containments/desktop
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2008-01-11 18:13:36
Message-ID: 1200075216.159462.19264.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 760000 by aseigo:

some helpful debug


 M  +6 -3      iconloader.cpp  


--- trunk/KDE/kdebase/workspace/plasma/containments/desktop/iconloader.cpp #759999:760000
@@ -73,7 +73,7 @@
 
     connect(&m_desktopDir, SIGNAL(newItems(KFileItemList)), this, SLOT(newItems(KFileItemList)) );
     connect(&m_desktopDir, SIGNAL(deleteItem(KFileItem)), this, SLOT(deleteItem(KFileItem)));
-    
+
     setShowIcons(m_iconShow);
 }
 
@@ -170,6 +170,7 @@
     args << url.path();
     Plasma::Applet *newApplet = m_desktop->addApplet(QString("icon"),args,0);
     if (newApplet) {
+        //kDebug() << "putting" << url.path() << "into the map";
         m_iconMap[url.path()] =  newApplet;
     }
 }
@@ -186,6 +187,7 @@
 void IconLoader::deleteIcon(const KUrl& url)
 {
     Plasma::Applet *applet = m_iconMap.value(url.path());
+
     if (applet) {
         m_iconMap.remove(url.path());
         applet->destroy();
@@ -205,8 +207,8 @@
         return;
     }
 
-
     foreach (KFileItem item, items) {
+        //kDebug() << "adding item" << item.url();
         if (!m_iconMap.contains(item.url().path())) {
             addIcon(item.url());
         }
@@ -217,7 +219,7 @@
 {
     QString path = item.url().path();
     if (!m_iconMap.contains(path)) {
-        kDebug() << "Icon " << path << " not found." << endl;
+        //kDebug() << "Icon " << path << " not found." << endl;
         return;
     }
     deleteIcon(item.url());
@@ -453,6 +455,7 @@
             KConfigGroup cg = icon->config();
             KUrl url = cg.readEntry("Url", KUrl());
 
+            //kDebug() << "checking" << url.path() << "against" << desktopDir;
             if (url.path().startsWith(desktopDir)) {
                 icon->destroy();    //the icon will be taken out of m_iconMap by the appletDeleted Slot
             }
[prev in list] [next in list] [prev in thread] [next in thread] 

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