Skip to content

Commit 4288d4c

Browse files
author
Jeremy Wootten
committed
Do not accept drop of location is unmounted
1 parent 73aec59 commit 4288d4c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libcore/FileUtils.vala

+4
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,10 @@ namespace Files.FileUtils {
758758
return Gdk.DragAction.DEFAULT;
759759
}
760760

761+
if (!dest.is_mounted) {
762+
return Gdk.DragAction.DEFAULT;
763+
}
764+
761765
if (dest.is_folder ()) {
762766
if (!dest.is_writable ()) {
763767
actions = Gdk.DragAction.DEFAULT;

0 commit comments

Comments
 (0)