2011-04-22 Mikhail Naganov <mnaganov@chromium.org>
authormnaganov@chromium.org <mnaganov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Apr 2011 12:18:09 +0000 (12:18 +0000)
committermnaganov@chromium.org <mnaganov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Apr 2011 12:18:09 +0000 (12:18 +0000)
        Unreviewed fix after r84484 -- conditional statement was inverted incorrectly.

        * inspector/front-end/ProfilesPanel.js:
        (WebInspector.ProfilesPanel.prototype.handleShortcut):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84618 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/ProfilesPanel.js

index 7e578d5..136803a 100644 (file)
@@ -1,3 +1,10 @@
+2011-04-22  Mikhail Naganov  <mnaganov@chromium.org>
+
+        Unreviewed fix after r84484 -- conditional statement was inverted incorrectly.
+
+        * inspector/front-end/ProfilesPanel.js:
+        (WebInspector.ProfilesPanel.prototype.handleShortcut):
+
 2011-04-22  Annie Sullivan  <sullivan@chromium.org>
 
         Reviewed by Pavel Feldman.
index 9275bb1..6e6e697 100644 (file)
@@ -736,7 +736,7 @@ WebInspector.ProfilesPanel.prototype = {
 
     handleShortcut: function(event)
     {
-        if (Preferences.heapProfilerPresent && Preferences.detailedHeapProfiles) {
+        if (Preferences.heapProfilerPresent && !Preferences.detailedHeapProfiles) {
             var combo = ["U+004C", "U+0045", "U+0041", "U+004B", "U+005A"];  // "LEAKZ"
             if (this._recognizeKeyboardCombo(combo, event)) {
                 this._displayDetailedHeapProfilesEnabledHint();