Tree can be broken when the last child tab is moved to the upper level by drag and drop #297
This commit is contained in:
parent
42d84c9633
commit
ce6b3b95db
@ -402,7 +402,7 @@ catch(e) {
|
|||||||
if (aSourceTab == nextTab) {
|
if (aSourceTab == nextTab) {
|
||||||
info.action = sv.kACTION_MOVE | sv.kACTION_ATTACH;
|
info.action = sv.kACTION_MOVE | sv.kACTION_ATTACH;
|
||||||
info.parent = sv.getParentTab(tab);
|
info.parent = sv.getParentTab(tab);
|
||||||
info.insertBefore = sv.getNextSiblingTab(tab);
|
info.insertBefore = sv.getNextSiblingTab(tab) || sv.getNextTab(nextTab);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (DEBUG && info.insertBefore) dump(' insertBefore = '+info.insertBefore._tPos+'\n');
|
if (DEBUG && info.insertBefore) dump(' insertBefore = '+info.insertBefore._tPos+'\n');
|
||||||
|
Loading…
Reference in New Issue
Block a user