From 6f2b52927a826fe6001805d623017e4b2a522c42 Mon Sep 17 00:00:00 2001 From: Girish Sharma Date: Wed, 26 Dec 2012 23:40:15 +0530 Subject: [PATCH] Bug 824743 - Wrong stylesheet check while opening the respective editor, r=msucan --- browser/devtools/styleeditor/StyleEditorChrome.jsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/devtools/styleeditor/StyleEditorChrome.jsm b/browser/devtools/styleeditor/StyleEditorChrome.jsm index f827f7b6d0a8..c61d551943b0 100644 --- a/browser/devtools/styleeditor/StyleEditorChrome.jsm +++ b/browser/devtools/styleeditor/StyleEditorChrome.jsm @@ -400,7 +400,7 @@ StyleEditorChrome.prototype = { onEditorAdded: function SEC_selectSheet_onEditorAdded(aChrome, aEditor) { let sheet = self._styleSheetToSelect.sheet; if ((sheet && aEditor.styleSheet == sheet) || - aEditor.styleSheetIndex == 0) { + (aEditor.styleSheetIndex == 0 && sheet == null)) { aChrome.removeChromeListener(this); select(aEditor); }