projects
/
ptask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allow to change the directory containing the notes.
[ptask.git]
/
src
/
note.c
diff --git
a/src/note.c
b/src/note.c
index
be9d87a
..
247d8d9
100644
(file)
--- a/
src/note.c
+++ b/
src/note.c
@@
-53,11
+53,11
@@
static char *get_path(const char *uuid)
const char *sdir;
char *path, *dir;
const char *sdir;
char *path, *dir;
- sdir = settings_get_
str(SETTINGS_KEY_NOTES_DIR
);
+ sdir = settings_get_
notes_dir(
);
if (sdir == NULL || *sdir == '\0') {
dir = get_default_path();
if (sdir == NULL || *sdir == '\0') {
dir = get_default_path();
- settings_set_
str(SETTINGS_KEY_NOTES_DIR,
dir);
+ settings_set_
notes_dir(
dir);
} else {
dir = strdup(sdir);
}
} else {
dir = strdup(sdir);
}