Index: chrome/browser/resources/file_manager/js/file_transfer_controller.js |
diff --git a/chrome/browser/resources/file_manager/js/file_transfer_controller.js b/chrome/browser/resources/file_manager/js/file_transfer_controller.js |
index 4e58aaeebc720a8e69affdad8fd5590a5ed3c00a..9a0f0d93a29135919c2f5637a5c6f156718f9004 100644 |
--- a/chrome/browser/resources/file_manager/js/file_transfer_controller.js |
+++ b/chrome/browser/resources/file_manager/js/file_transfer_controller.js |
@@ -428,6 +428,8 @@ FileTransferController.prototype = { |
if (this.directoryModel_.isPathReadOnly(destinationPath)) { |
return false; |
} |
+ if (this.directoryModel_.isSearching()) |
+ return false; |
if (!dataTransfer.types || dataTransfer.types.indexOf('fs/tag') == -1) |
return false; // Unsupported type of content. |
@@ -509,7 +511,7 @@ FileTransferController.prototype = { |
}, |
get currentDirectory() { |
- return this.directoryModel_.getCurrentDirEntry(); |
+ return this.directoryModel_.getSearchOrCurrentDirEntry(); |
}, |
get readonly() { |