Only clear clipboard if files are moved, not copied or symlinked

This commit is contained in:
nathangray 2016-08-29 09:41:43 -06:00
parent 7738de2dec
commit 9496768f82

View File

@ -887,10 +887,13 @@ app.classes.filemanager = AppJS.extend(
action.execute(clipboard.selected,selected[0]);
// Clear the clipboard, the files are not there anymore
egw.setSessionItem('phpgwapi', 'egw_clipboard', JSON.stringify({
type:[],
selected:[]
}));
if(action.id.indexOf('move') !== -1)
{
egw.setSessionItem('phpgwapi', 'egw_clipboard', JSON.stringify({
type:[],
selected:[]
}));
}
};
for(var i = 0; i < actions.length; i++)
{