From e17c8ebde80e152184041bcc8526d2d4db49ab4d Mon Sep 17 00:00:00 2001 From: j-dimension Date: Mon, 28 Oct 2024 10:45:29 +0100 Subject: [PATCH] fixed bug related to disabled context menu for emptying trash --- .../com/jdimension/jlawyer/client/mail/EmailInboxPanel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/j-lawyer-client/src/com/jdimension/jlawyer/client/mail/EmailInboxPanel.java b/j-lawyer-client/src/com/jdimension/jlawyer/client/mail/EmailInboxPanel.java index 256b898e9..4441e5cab 100755 --- a/j-lawyer-client/src/com/jdimension/jlawyer/client/mail/EmailInboxPanel.java +++ b/j-lawyer-client/src/com/jdimension/jlawyer/client/mail/EmailInboxPanel.java @@ -1749,7 +1749,7 @@ private void treeFoldersMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRS this.mnuRemoveFolder.setEnabled(true); } - this.mnuEmptyTrash.setEnabled(CommonMailUtils.TRASH.equalsIgnoreCase(f.getName())); + this.mnuEmptyTrash.setEnabled(CommonMailUtils.TRASH.equalsIgnoreCase(f.getName()) || CommonMailUtils.isTrash(f.getName())); if (f instanceof POP3Folder) { this.mnuNewFolder.setEnabled(false); @@ -1815,7 +1815,7 @@ private void treeFoldersMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST this.mnuRemoveFolder.setEnabled(true); } - this.mnuEmptyTrash.setEnabled(CommonMailUtils.TRASH.equalsIgnoreCase(f.getName())); + this.mnuEmptyTrash.setEnabled(CommonMailUtils.TRASH.equalsIgnoreCase(f.getName()) || CommonMailUtils.isTrash(f.getName()) || CommonMailUtils.isTrash(f.getName())); if (f instanceof POP3Folder) { this.mnuNewFolder.setEnabled(false);