Commit b1086f79 authored by dietrich@mozilla.com's avatar dietrich@mozilla.com
Browse files

Bug 431140 - dropping a bookmark or folder in the library window causes...

Bug 431140 - dropping a bookmark or folder in the library window causes flickering (for mak77@supereva.it, r=mano, a=mconnor)
parent e890be0b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -230,6 +230,7 @@ var PlacesOrganizer = {
    }

    this._setSearchScopeForNode(node);
    if (this._places.treeBoxObject.focused)
      this._fillDetailsPane(node);
  },

@@ -619,6 +620,7 @@ var PlacesOrganizer = {
  },

  onContentTreeSelect: function PO_onContentTreeSelect() {
    if (this._content.treeBoxObject.focused)
      this._fillDetailsPane(this._content.selectedNode);
  },

+5 −7
Original line number Diff line number Diff line
@@ -327,10 +327,9 @@ PlacesTreeView.prototype = {
    }

    // now update the number of elements
    if (previouslySelectedNodes.length > 0)
    selection.selectEventsSuppressed = true;

    this._tree.beginUpdateBatch();

    if (replaceCount)
      this._tree.rowCountChanged(startReplacement, -replaceCount);
    if (newElements.length)
@@ -349,8 +348,8 @@ PlacesTreeView.prototype = {
        }
        // if we don't have a parent, we made it all the way to the root
        // and didn't find a match, so we can open our item
        if (!parent)
          item.containerOpen = !item.containerOpen;
        if (!parent && !item.containerOpen)
          item.containerOpen = true;
      }
    }

@@ -394,9 +393,8 @@ PlacesTreeView.prototype = {
        selection.rangedSelect(previouslySelectedNodes[0].oldIndex,
                               previouslySelectedNodes[0].oldIndex, true);
      }

      selection.selectEventsSuppressed = false;
    }
    selection.selectEventsSuppressed = false;
  },

  _convertPRTimeToString: function PTV__convertPRTimeToString(aTime) {