diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2012-06-06 23:35:04 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2012-06-06 23:35:57 +0200 |
commit | 5d6547e13a55b802fdb0ea142526bc57cf62e1ae (patch) | |
tree | 2f5b8f1869b619bca93aabc3fba4df1d179ff297 /main/src | |
parent | 209b608ab1d0b11f812d0879d058c35aa6be44d8 (diff) | |
download | cgeo-5d6547e13a55b802fdb0ea142526bc57cf62e1ae.zip cgeo-5d6547e13a55b802fdb0ea142526bc57cf62e1ae.tar.gz cgeo-5d6547e13a55b802fdb0ea142526bc57cf62e1ae.tar.bz2 |
Fix #1738: enable "store selected" operation on search results
The check was erroneous and was checking for a concrete list, while it
should check for either a concrete list or a non-offline one, such as a
search result.
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/cgeo/geocaching/cgeocaches.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/cgeocaches.java b/main/src/cgeo/geocaching/cgeocaches.java index 6b9ca08..3be48ca 100644 --- a/main/src/cgeo/geocaching/cgeocaches.java +++ b/main/src/cgeo/geocaching/cgeocaches.java @@ -807,7 +807,7 @@ public class cgeocaches extends AbstractListActivity { setVisible(menu, SUBMENU_MANAGE_HISTORY, !isEmpty); setVisible(menu, SUBMENU_SHOW_MAP, !isEmpty); setVisible(menu, SUBMENU_SORT, !isEmpty); - setVisible(menu, MENU_REFRESH_STORED, isConcrete && !isEmpty); + setVisible(menu, MENU_REFRESH_STORED, !isEmpty && (isConcrete || type != CacheListType.OFFLINE)); setVisible(menu, MENU_DROP_CACHES, !isEmpty); setVisible(menu, MENU_DROP_CACHES_AND_LIST, isConcrete && !isEmpty); setVisible(menu, MENU_MOVE_TO_LIST, !isEmpty); |