From f1ebb0156e054e79b44b8fb2d3e1b0b021504f7c Mon Sep 17 00:00:00 2001
From: Darrell Anderson <humanreadable@yahoo.com>
Date: Thu, 22 Mar 2012 15:10:11 -0500
Subject: Restore code snippet removed with GIT hash
 27856879bf962f178d88e79144e37a47e731b122, Sept. 3, 2010, "Massive import of
 OpenSUSE patches." Restoring this snippet restores the device icon placement
 and resolves bug report 392. (cherry picked from commit
 5df6c5fca20e917aaa82665131b931a0aa7c8628)

---
 kdesktop/kdiconview.cc | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/kdesktop/kdiconview.cc b/kdesktop/kdiconview.cc
index 4cf5d7a08..879f889ed 100644
--- a/kdesktop/kdiconview.cc
+++ b/kdesktop/kdiconview.cc
@@ -1141,6 +1141,15 @@ void KDIconView::slotNewItems( const KFileItemList & entries )
             kdDebug(1214)<<"Using saved position"<<endl;
         }
       }
+      else
+      {
+            // Not found, we'll need to save the new pos
+            kdDebug(1214)<<"slotNewItems(): New item without position information, try to find a sane location"<<endl;
+
+            moveToFreePosition(fileIVI);
+
+            m_bNeedSave = true;
+      }
     }
   }
 
-- 
cgit v1.2.3

