Mail: Fix pressing delete without selected mail deletes first mail when mail is not the open app when you log in

This commit is contained in:
nathan 2022-04-13 16:43:53 -06:00
parent 5dda1c368c
commit 6791b751c6

View File

@ -201,7 +201,8 @@ app.classes.mail = AppJS.extend(
this.mail_isMainWindow = true;
// Stop list from focussing next row on keypress
egw_getObjectManager('nm').flags = egwSetBit(egw_getObjectManager('nm').flags, EGW_AO_FLAG_DEFAULT_FOCUS, false);
var aom = egw_getObjectManager('mail').getObjectById('nm');
aom.flags = egwSetBit(aom.flags, EGW_AO_FLAG_DEFAULT_FOCUS, false);
// Set preview pane state
this.mail_disablePreviewArea(!this.getPreviewPaneState());