зеркало из https://github.com/mozilla/gecko-dev.git
Supplementary patch in bug 227053 fixing exception when switching group mode r=timeless sr=alecf
This commit is contained in:
Родитель
96ea5ea515
Коммит
85eee6017d
|
@ -153,7 +153,7 @@ function historyOnSelect()
|
||||||
gLastDomain = "";
|
gLastDomain = "";
|
||||||
var match;
|
var match;
|
||||||
var currentIndex = gHistoryTree.currentIndex;
|
var currentIndex = gHistoryTree.currentIndex;
|
||||||
var rowIsContainer = gHistoryGrouping != "none" && currentIndex >= 0 && isContainer(gHistoryTree, currentIndex);
|
var rowIsContainer = currentIndex < 0 || (gHistoryGrouping != "none" && isContainer(gHistoryTree, currentIndex));
|
||||||
var url = rowIsContainer ? "" : gHistoryTree.treeBoxObject.view.getCellText(currentIndex, "URL");
|
var url = rowIsContainer ? "" : gHistoryTree.treeBoxObject.view.getCellText(currentIndex, "URL");
|
||||||
|
|
||||||
if (url) {
|
if (url) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче