]> cloud.milkyroute.net Git - dolphin.git/commitdiff
the method dropUrls(KUrl::List, KUrl) was never used as slot and is invoked only...
authorPeter Penz <peter.penz19@gmail.com>
Wed, 18 Jun 2008 21:19:46 +0000 (21:19 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Wed, 18 Jun 2008 21:19:46 +0000 (21:19 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=822000

src/dolphinview.cpp
src/dolphinview.h

index 221d203760ba3c02f1288403da15cdf7eda81a57..18ffe0a27ddb82bdca525d0cf45a5905ed509cc3 100644 (file)
@@ -800,20 +800,14 @@ void DolphinView::dropUrls(const KUrl::List& urls,
                               destItem.url() : destPath;
     const KUrl sourceDir = KUrl(urls.first().directory());
     if (sourceDir != destination) {
-        dropUrls(urls, destination);
+        DolphinDropController dropController(this);
+        // forward doingOperation signal up to the mainwindow
+        connect(&dropController, SIGNAL(doingOperation(KIO::FileUndoManager::CommandType)),
+                this, SIGNAL(doingOperation(KIO::FileUndoManager::CommandType)));
+        dropController.dropUrls(urls, destination);
     }
 }
 
-void DolphinView::dropUrls(const KUrl::List& urls,
-                           const KUrl& destination)
-{
-    DolphinDropController dropController(this);
-    // forward doingOperation signal up to the mainwindow
-    connect(&dropController, SIGNAL(doingOperation(KIO::FileUndoManager::CommandType)),
-            this, SIGNAL(doingOperation(KIO::FileUndoManager::CommandType)));
-    dropController.dropUrls(urls, destination);
-}
-
 void DolphinView::updateSorting(DolphinView::Sorting sorting)
 {
     ViewProperties props(viewPropertiesUrl());
index d9c273d38139a536a570bb413f67da566d472de6..6f4327c52a3970bca1120850c11b304b1923ab9b 100644 (file)
@@ -546,12 +546,6 @@ private slots:
                   const KUrl& destPath,
                   const KFileItem& destItem);
 
-    /**
-     * Handles the dropping of URLs to the given destination.
-     * @see DolphinDropController
-     */
-    void dropUrls(const KUrl::List& urls,
-                  const KUrl& destination);
     /**
      * Updates the view properties of the current URL to the
      * sorting given by \a sorting.