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());
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.