mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
A file that we import should never become the default file we save to
Only files that are opened should be considered r/w. Files that are imported should be treated as if they were r/o. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ffd3b8591d
commit
a2afe41280
5 changed files with 18 additions and 14 deletions
5
dive.h
5
dive.h
|
|
@ -344,11 +344,12 @@ static inline struct dive *get_dive(int nr)
|
|||
for ((_i) = 0; ((_x) = get_dive(_i)) != NULL; (_i)++)
|
||||
|
||||
extern void parse_xml_init(void);
|
||||
extern void parse_xml_buffer(const char *url, const char *buf, int size, GError **error);
|
||||
extern void parse_xml_buffer(const char *url, const char *buf, int size, GError **error,
|
||||
gboolean possible_default_filename);
|
||||
extern void parse_xml_exit(void);
|
||||
extern void set_filename(const char *filename, gboolean force);
|
||||
|
||||
extern void parse_file(const char *filename, GError **error);
|
||||
extern void parse_file(const char *filename, GError **error, gboolean possible_default_filename);
|
||||
|
||||
#ifdef XSLT
|
||||
extern xmlDoc *test_xslt_transforms(xmlDoc *doc);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue