File patch-r897799.diff of Package kdebase4

Subject: Fix duplicated entries in the recent folder list of the Copy To / Move To submenus
From: wstephenson@suse.de
Bug: kde:177858
Patch-upstream: 897799
--- apps/lib/konq/konq_copytomenu.cpp	(revision 897798)
+++ apps/lib/konq/konq_copytomenu.cpp	(revision 897799)
@@ -193,7 +193,10 @@ void KonqCopyToDirectoryMenu::slotAboutT
     const QStringList entries = dir.entryList(QDir::Dirs | QDir::NoDotAndDotDot, QDir::LocaleAware);
     KMimeType::Ptr dirMime = KMimeType::mimeType("inode/directory");
     Q_FOREACH(const QString& subDir, entries) {
-        const QString subPath = m_path + '/' + subDir;
+        QString subPath = m_path;
+        if (!subPath.endsWith('/'))
+            subPath.append('/');
+        subPath += subDir;
         KonqCopyToDirectoryMenu* subMenu = new KonqCopyToDirectoryMenu(this, m_mainMenu, subPath);
         subMenu->setTitle(subDir);
         const QString iconName = dirMime->iconName(KUrl(subPath));
Index: apps/lib/konq/konq_copytomenu.cpp
===================================================================