Commit d36bc4ba authored by oleg@chromium.org's avatar oleg@chromium.org

In FileManager when clicking on the current root while viewing the top...

In FileManager when clicking on the current root while viewing the top directory, do nothing (instead of rescanning the directory).


BUG=137985


Review URL: https://chromiumcodereview.appspot.com/10834087

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149206 0039d316-1c4b-4281-b951-d872f2087c98
parent 000e0785
...@@ -1894,7 +1894,7 @@ FileManager.prototype = { ...@@ -1894,7 +1894,7 @@ FileManager.prototype = {
li.className = 'root-item'; li.className = 'root-item';
var dm = this.directoryModel_; var dm = this.directoryModel_;
var handleClick = function() { var handleClick = function() {
if (li.selected) { if (li.selected && path !== dm.getCurrentDirPath()) {
dm.changeDirectory(path); dm.changeDirectory(path);
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment