Do not allow files or folders inside trash to be added to dolphin's places panel

REVIEW: 120286
BUG: 339204
FIXED-IN: 4.14.2
This commit is contained in:
Arjun AK 2014-09-21 17:01:51 +05:30
parent 47bd204804
commit 398162a1be

View file

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