fixed can not access property uid of undefined, but there seems to be more problems with new persistent selection between "refreshs"

This commit is contained in:
Ralf Becker 2014-02-26 12:18:30 +00:00
parent 095cb846f6
commit c4385f79ec

View File

@ -120,7 +120,8 @@ var et2_nextmatch_controller = et2_dataview_controller.extend(et2_IDataProvider,
*/
keepSelection: function() {
this.kept_selection = this._selectionMgr ? this._selectionMgr.getSelected() : null;
this.kept_focus = this._selectionMgr ? this._selectionMgr._focusedEntry.uid || null : null;
this.kept_focus = this._selectionMgr && this._selectionMgr._focusedEntry ?
this._selectionMgr._focusedEntry.uid || null : null;
},
getObjectManager: function () {