X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fnote.c;h=0097d33647f5ec641c4029019b4d620a249602c1;hb=64d52e239f715717646357783d01ff8650dbdb2d;hp=be9d87a0e25db084b40348ee5dd98c742b0d5c45;hpb=909b5e1edc01d95ebfaf39982b69831d8503c74c;p=ptask.git diff --git a/src/note.c b/src/note.c index be9d87a..0097d33 100644 --- a/src/note.c +++ b/src/note.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012-2013 jeanfi@gmail.com + * Copyright (C) 2012-2016 jeanfi@gmail.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -53,11 +53,11 @@ static char *get_path(const char *uuid) 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(); - settings_set_str(SETTINGS_KEY_NOTES_DIR, dir); + settings_set_notes_dir(dir); } else { dir = strdup(sdir); }