Skip to content

Commit

Permalink
Check if the source is visible.
Browse files Browse the repository at this point in the history
  • Loading branch information
jburel committed May 16, 2014
1 parent 93eca23 commit 7676229
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,9 @@ public void actionPerformed(ActionEvent e)
}

viewedByMenu.add(thumbnailsMenuItem);
viewedByMenu.show(source, location.x, location.y);
if (source != null && source.isVisible()) {
viewedByMenu.show(source, location.x, location.y);
}
}

/** Displays all the thumbnails. */
Expand Down

0 comments on commit 7676229

Please sign in to comment.