Bug 83662 - can't select first file in linux filepicker. r=jag, sr=blizzard, a=asa.

This commit is contained in:
bryner%uiuc.edu 2001-06-05 00:07:49 +00:00
parent 9a64865fff
commit 4c99c242aa

View File

@ -232,7 +232,7 @@ nsFileView.prototype = {
/* void selectionChanged(); */
selectionChanged: function() {
if (this.mSelectionCallback && this.mSelection.currentIndex > 0) {
if (this.mSelectionCallback && this.mSelection.currentIndex != -1) {
var file;
if (this.mSelection.currentIndex < this.mDirList.length) {
file = this.mDirList[this.mSelection.currentIndex].file;