Merge branch 'KDE/4.14'

This commit is contained in:
Luca Beltrame 2014-09-21 14:36:02 +02:00
commit 4479a546bd

View file

@ -435,8 +435,9 @@ void PlacesItemModel::dropMimeDataBefore(int index, const QMimeData* mimeData)
text = url.host();
}
if (url.isLocalFile() && !QFileInfo(url.toLocalFile()).isDir()) {
// Only directories are allowed
if ((url.isLocalFile() && !QFileInfo(url.toLocalFile()).isDir())
|| url.protocol() == "trash") {
// Only directories outside the trash are allowed
continue;
}