Skip to content

Commit

Permalink
Fix reason for missing key JabRef#1549
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-kolb authored and zesaro committed Oct 27, 2016
1 parent 0647ed7 commit f7b5e54
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/java/net/sf/jabref/gui/search/GlobalSearchBar.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,11 @@ public GlobalSearchBar(JabRefFrame frame) {
globalSearch.setToolTipText(Localization.lang("Search globally"));
globalSearch.addActionListener(e -> {
searchPreferences.setGlobalSearch(globalSearch.isSelected());
String localization = globalSearch.isSelected() ? "Search in all open databases" : "Show search results in a window";
openCurrentResultsInDialog.setToolTipText(Localization.lang(localization));
if (globalSearch.isSelected()) {
openCurrentResultsInDialog.setToolTipText(Localization.lang("Search in all open databases"));
} else {
openCurrentResultsInDialog.setToolTipText(Localization.lang("Show search results in a window"));
}
});

openCurrentResultsInDialog.setDisabledIcon(IconTheme.JabRefIcon.OPEN_IN_NEW_WINDOW.getSmallIcon().createDisabledIcon());
Expand Down

0 comments on commit f7b5e54

Please sign in to comment.