Skip to content

Commit

Permalink
Fix quick resource search filter not always opening
Browse files Browse the repository at this point in the history
Fixes regression in 9d415b6
  • Loading branch information
Argent77 committed Sep 4, 2024
1 parent 27c153c commit a8f685e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/org/infinity/gui/ButtonPopupWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -275,14 +275,14 @@ public void removeGlobalKeyStroke(Object key, KeyStroke keyStroke) {

protected void firePopupWindowListener(boolean becomeVisible) {
PopupWindowEvent event = null;
for (PopupWindowListener listener : listeners) {
for (int i = 0, size = listeners.size(); i < size; i++) {
if (event == null) {
event = new PopupWindowEvent(this);
}
if (becomeVisible) {
listener.popupWindowWillBecomeVisible(event);
listeners.get(i).popupWindowWillBecomeVisible(event);
} else {
listener.popupWindowWillBecomeInvisible(event);
listeners.get(i).popupWindowWillBecomeInvisible(event);
}
}
}
Expand Down

0 comments on commit a8f685e

Please sign in to comment.