summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Henrik Brautaset Aronsen <subsurface@henrik.synth.no>2013-02-20 21:00:28 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-20 12:06:08 -0800
commitc3c3dd84ac6a50280296a5cf601ac895b9702744 (patch)
treedbf68a2f06a8bf6d0a162fa13436158ae695bc5f
parent9f5a636c6abfa9b384c8defe47c35e752874d7d1 (diff)
downloadsubsurface-c3c3dd84ac6a50280296a5cf601ac895b9702744.tar.gz
Change divelogs.de export file suffix from .ZIP to .DLD
As Rainer finished up the export function on divelogs.de, he used DLD as a suffix instead. Suggested-by: Rainer Mohr <mail@divelogs.de> Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--file.c4
-rw-r--r--gtk-gui.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/file.c b/file.c
index 967afb8b6..28022c85e 100644
--- a/file.c
+++ b/file.c
@@ -227,8 +227,8 @@ static int open_by_filename(const char *filename, const char *fmt, struct memblo
if (!strcasecmp(fmt, "SDE"))
return try_to_open_zip(filename, mem, error);
- /* divelogs.de files: divelogsData.zip */
- if (!strcasecmp(fmt, "ZIP"))
+ /* divelogs.de files: DLD */
+ if (!strcasecmp(fmt, "DLD"))
return try_to_open_zip(filename, mem, error);
/* Truly nasty intentionally obfuscated Cochran Anal software */
diff --git a/gtk-gui.c b/gtk-gui.c
index 65a308c55..f34393cc4 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -126,8 +126,8 @@ static GtkFileFilter *setup_filter(void)
#ifdef LIBZIP
gtk_file_filter_add_pattern(filter, "*.sde");
gtk_file_filter_add_pattern(filter, "*.SDE");
- gtk_file_filter_add_pattern(filter, "*.zip");
- gtk_file_filter_add_pattern(filter, "*.ZIP");
+ gtk_file_filter_add_pattern(filter, "*.dld");
+ gtk_file_filter_add_pattern(filter, "*.DLD");
#endif
gtk_file_filter_add_mime_type(filter, "text/xml");
gtk_file_filter_set_name(filter, _("XML file"));