fix bug 318532 - Lost focus when deleting first item in history sidebar
p=David Benes <dave_forward@centrum.cz> r=both neils (enndeakin, neil@parkwaycc)
This commit is contained in:
Родитель
aae78ae840
Коммит
acba26fd4a
|
@ -206,11 +206,12 @@ function nsTreeController_delete()
|
|||
} catch (ex) {
|
||||
}
|
||||
}
|
||||
if (max.value) {
|
||||
var newIndex = max.value - (max.value - min.value);
|
||||
if (max.value != -1) {
|
||||
var newIndex = min.value;
|
||||
if (newIndex >= this.treeView.rowCount)
|
||||
--newIndex;
|
||||
this.treeSelection.select(newIndex);
|
||||
if (newIndex >= 0)
|
||||
this.treeSelection.select(newIndex);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче