diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/dive.h | 2 | ||||
-rw-r--r-- | core/qthelper.cpp | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/core/dive.h b/core/dive.h index 2b227690b..7b2f3d658 100644 --- a/core/dive.h +++ b/core/dive.h @@ -723,7 +723,7 @@ extern int match_one_dc(struct divecomputer *a, struct divecomputer *b); extern void parse_xml_init(void); extern int parse_xml_buffer(const char *url, const char *buf, int size, struct dive_table *table, const char **params); extern void parse_xml_exit(void); -extern void set_filename(const char *filename, bool force); +extern void set_filename(const char *filename); extern int parse_dm4_buffer(sqlite3 *handle, const char *url, const char *buf, int size, struct dive_table *table); extern int parse_dm5_buffer(sqlite3 *handle, const char *url, const char *buf, int size, struct dive_table *table); diff --git a/core/qthelper.cpp b/core/qthelper.cpp index 7f72fd9a2..b63ea3929 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -560,10 +560,8 @@ QLocale getLocale() return loc; } -void set_filename(const char *filename, bool force) +void set_filename(const char *filename) { - if (!force && existing_filename) - return; free((void *)existing_filename); if (filename) existing_filename = strdup(filename); |