Index: Source/devtools/front_end/NavigatorView.js |
diff --git a/Source/devtools/front_end/NavigatorView.js b/Source/devtools/front_end/NavigatorView.js |
index 8c46864602fbf3e725c623cfc764252a9ce87d9d..2b556d94670ef518520a9dc21526d0e7492cd799 100644 |
--- a/Source/devtools/front_end/NavigatorView.js |
+++ b/Source/devtools/front_end/NavigatorView.js |
@@ -421,8 +421,7 @@ WebInspector.NavigatorView.prototype = { |
return; |
} |
- var data = { uiSourceCode: uiSourceCode }; |
- this.dispatchEventToListeners(WebInspector.NavigatorView.Events.ItemRenamed, data); |
+ this.dispatchEventToListeners(WebInspector.NavigatorView.Events.ItemRenamed, uiSourceCode); |
this._updateIcon(uiSourceCode); |
this._sourceSelected(uiSourceCode, true) |
} |
@@ -476,6 +475,7 @@ WebInspector.NavigatorView.prototype = { |
return; |
} |
this._sourceSelected(uiSourceCode, false); |
+ this.revealUISourceCode(uiSourceCode, true); |
this.rename(uiSourceCode, true); |
} |
}, |