Skip to content

Commit

Permalink
Merge pull request #413 from jburel/issue_412
Browse files Browse the repository at this point in the history
add break
  • Loading branch information
jburel authored Dec 15, 2023
2 parents 21b7218 + 8243d55 commit aad46c8
Showing 1 changed file with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -563,16 +563,17 @@ void showPopup(Point p)
{
if (popupMenu == null) popupMenu = new PopupMenu(controller, model);
Component comp = null;
switch (selectedView) {
case THUMB_VIEW:
if (model.getBrowser() != null)
comp = model.getBrowser().getUI();
break;
case COLUMNS_VIEW:
comp = model.getTableView();
case SEARCH_VIEW:
comp = model.getSearchView();
}
switch (selectedView) {
case THUMB_VIEW:
if (model.getBrowser() != null)
comp = model.getBrowser().getUI();
break;
case COLUMNS_VIEW:
comp = model.getTableView();
break;
case SEARCH_VIEW:
comp = model.getSearchView();
}
if (comp != null) {
popupMenu.populateOpenWith();
popupMenu.show(comp, p.x, p.y);
Expand Down

0 comments on commit aad46c8

Please sign in to comment.