diff --git a/lib/client/key.js b/lib/client/key.js index 2924e958..d813883f 100644 --- a/lib/client/key.js +++ b/lib/client/key.js @@ -89,7 +89,7 @@ var CloudCmd, Util, DOM; lId = lPanel.id; lCurrent = lTabPanel[lId]; - if (lCurrent) + if (lCurrent && lCurrent.parentElement) DOM.setCurrentFile(lCurrent); else { lFirstFileOnList = DOM.getByTag('li', lPanel)[2];