aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrel00p <rel00p@gmx.net>2013-12-30 21:29:07 +0100
committerrel00p <rel00p@gmx.net>2013-12-30 21:29:07 +0100
commite68cc028394d283090ef8652c968c9c7009671e5 (patch)
treeef9176409b7890884527de06308be202ca0716e6
parent508c170bb57c157dea31215b38e6660435baf93a (diff)
downloadcgeo-e68cc028394d283090ef8652c968c9c7009671e5.zip
cgeo-e68cc028394d283090ef8652c968c9c7009671e5.tar.gz
cgeo-e68cc028394d283090ef8652c968c9c7009671e5.tar.bz2
fixes #3475
-rw-r--r--main/src/cgeo/geocaching/files/GPXParser.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/files/GPXParser.java b/main/src/cgeo/geocaching/files/GPXParser.java
index d26a48c..157ea9d 100644
--- a/main/src/cgeo/geocaching/files/GPXParser.java
+++ b/main/src/cgeo/geocaching/files/GPXParser.java
@@ -12,6 +12,7 @@ import cgeo.geocaching.enumerations.CacheSize;
import cgeo.geocaching.enumerations.CacheType;
import cgeo.geocaching.enumerations.LoadFlags;
import cgeo.geocaching.enumerations.LoadFlags.LoadFlag;
+import cgeo.geocaching.enumerations.LoadFlags.RemoveFlag;
import cgeo.geocaching.enumerations.LoadFlags.SaveFlag;
import cgeo.geocaching.enumerations.LogType;
import cgeo.geocaching.enumerations.WaypointType;
@@ -335,7 +336,7 @@ public abstract class GPXParser extends FileParser {
DataStore.saveCache(cache, EnumSet.of(SaveFlag.SAVE_DB));
// avoid the cachecache using lots of memory for caches which the user did not actually look at
- DataStore.removeAllFromCache();
+ DataStore.removeCache(geocode, EnumSet.of(RemoveFlag.REMOVE_CACHE));
showProgressMessage(progressHandler, progressStream.getProgress());
} else if (StringUtils.isNotBlank(cache.getName())
&& StringUtils.containsIgnoreCase(type, "waypoint")) {
@@ -858,7 +859,7 @@ public abstract class GPXParser extends FileParser {
/**
* Overwrite this method in a GPX parser sub class to modify the {@link Geocache}, after it has been fully parsed
* from the GPX file and before it gets stored.
- *
+ *
* @param cache
* currently imported cache
*/