Index: Source/devtools/front_end/components/InspectorView.js |
diff --git a/Source/devtools/front_end/components/InspectorView.js b/Source/devtools/front_end/components/InspectorView.js |
index 2ad7eac3a47cad9482a8f34d46e48e414c637989..4b3ccabfa223378f64151c466046c7016b783b00 100644 |
--- a/Source/devtools/front_end/components/InspectorView.js |
+++ b/Source/devtools/front_end/components/InspectorView.js |
@@ -245,8 +245,11 @@ WebInspector.InspectorView.prototype = { |
if (this._currentPanel === x) |
return; |
+ if (this._currentPanel) |
+ WebInspector.context.setFlavor(this._currentPanel.constructor, null); |
this._tabbedPane.changeTabView(x.name, x); |
this._tabbedPane.selectTab(x.name); |
+ WebInspector.context.setFlavor(x.constructor, x); |
}, |
/** |