Skip to content

Commit

Permalink
sepinf-inc#2286: always add owner in bookmark name if it is present
Browse files Browse the repository at this point in the history
  • Loading branch information
aberenguel committed Aug 16, 2024
1 parent d4c4115 commit c8ea9dd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions iped-engine/src/main/java/iped/engine/task/P2PBookmarker.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,12 @@ public void createBookmarksForSharedFiles(File caseDir) {
String source = doc.get(ExtraProperties.UFED_META_PREFIX + "Source"); //$NON-NLS-1$
if (source != null)
bookmarkSufix = source;
String owner = doc.get(ExtraProperties.COMMUNICATION_OWNER);
if (owner != null && !owner.isEmpty())
bookmarkSufix += " by " + owner; //$NON-NLS-1$
}

String owner = doc.get(ExtraProperties.COMMUNICATION_OWNER);
if (owner != null && !owner.isEmpty())
bookmarkSufix += " by " + owner; //$NON-NLS-1$

int labelId = ipedSrc.getBookmarks()
.newBookmark(Messages.getString("P2PBookmarker.P2PBookmarkPrefix") + bookmarkSufix); //$NON-NLS-1$
if (program.color != null) {
Expand Down

0 comments on commit c8ea9dd

Please sign in to comment.