aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching
diff options
context:
space:
mode:
authorcampbeb <bpcampbell@gmail.com>2012-07-11 16:24:22 +0900
committercampbeb <bpcampbell@gmail.com>2012-07-11 16:24:22 +0900
commit11712f3ae7e1563beeb704321402f284a430700e (patch)
treef0649db5b4c404ec847cdb8e9b18552132b96c61 /main/src/cgeo/geocaching
parent231737105d912e2e020baa8e78c659f6e8b43342 (diff)
downloadcgeo-11712f3ae7e1563beeb704321402f284a430700e.zip
cgeo-11712f3ae7e1563beeb704321402f284a430700e.tar.gz
cgeo-11712f3ae7e1563beeb704321402f284a430700e.tar.bz2
Only append offline log table when loading offline logs
Diffstat (limited to 'main/src/cgeo/geocaching')
-rw-r--r--main/src/cgeo/geocaching/cgData.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/cgData.java b/main/src/cgeo/geocaching/cgData.java
index 53ac334..f219835 100644
--- a/main/src/cgeo/geocaching/cgData.java
+++ b/main/src/cgeo/geocaching/cgData.java
@@ -1472,7 +1472,9 @@ public class cgData {
for (int i = 0; i < CACHE_COLUMNS.length; i++) {
query.append(i > 0 ? ", " : "").append(dbTableCaches).append('.').append(CACHE_COLUMNS[i]).append(' ');
}
- query.append(',').append(dbTableLogsOffline).append(".log");
+ if (loadFlags.contains(LoadFlag.LOAD_OFFLINE_LOG)) {
+ query.append(',').append(dbTableLogsOffline).append(".log");
+ }
query.append(" FROM ").append(dbTableCaches);
if (loadFlags.contains(LoadFlag.LOAD_OFFLINE_LOG)) {