Reset selected nm actions on change folder. Fixes selected all actions sometimes get disabled.

This commit is contained in:
Hadi Nategh 2018-07-05 16:34:30 +02:00
parent 71442541f5
commit 1cfe10e831

View File

@ -2127,6 +2127,10 @@ app.classes.mail = AppJS.extend(
// to reset iframes to the normal status // to reset iframes to the normal status
this.loadIframe(); this.loadIframe();
// reset nm action selection, seems actions system accumulate selected items
// and that leads to corruption for selected all actions
this.et2.getWidgetById(this.nm_index).controller._selectionMgr.resetSelection();
// Abort if user selected an un-selectable node // Abort if user selected an un-selectable node
// Use image over anything else because...? // Use image over anything else because...?
var img = _widget.getSelectedNode().images[0]; var img = _widget.getSelectedNode().images[0];