diff options
| author | Peter Penz <[email protected]> | 2008-06-18 21:19:46 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-06-18 21:19:46 +0000 |
| commit | 4f3e1b0c24e8150cc940cadc754b4d703bbac26a (patch) | |
| tree | 634c23a180a6365d809124972f122e72efce6c06 | |
| parent | 84376acc848475e4aa03408fd9a5255c201e697d (diff) | |
the method dropUrls(KUrl::List, KUrl) was never used as slot and is invoked only once -> moved to caller
svn path=/trunk/KDE/kdebase/apps/; revision=822000
| -rw-r--r-- | src/dolphinview.cpp | 16 | ||||
| -rw-r--r-- | src/dolphinview.h | 6 |
2 files changed, 5 insertions, 17 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index 221d20376..18ffe0a27 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -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()); diff --git a/src/dolphinview.h b/src/dolphinview.h index d9c273d38..6f4327c52 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -547,12 +547,6 @@ private slots: 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. */ |
