mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Merge branch 'master' into frameworks
This commit is contained in:
commit
2744fb4a0b
|
@ -433,8 +433,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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue