Skip to content

Commit

Permalink
Fix equals
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikl committed Feb 26, 2024
1 parent 59ffe23 commit f84dda5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* org.openmicroscopy.shoola.env.ui.TaskBarImpl
*
*------------------------------------------------------------------------------
* Copyright (C) 2006-2013 University of Dundee. All rights reserved.
* Copyright (C) 2006-2024 University of Dundee. All rights reserved.
*
*
* This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -608,7 +608,7 @@ public void removeFromMenu(int menuID, JMenuItem entry)
for (int j = 0; j < comps.length; j++) {
c = comps[j];
if (c instanceof JMenu) {
if (((JMenu) c).getText() == entry.getText()) {
if (((JMenu) c).getText().equals(entry.getText())) {
menu.remove(c);
}
}
Expand Down

0 comments on commit f84dda5

Please sign in to comment.