diff options
author | Nullspoon <nullspoon@iohq.net> | 2014-09-05 23:36:01 -0600 |
---|---|---|
committer | Nullspoon <nullspoon@iohq.net> | 2014-09-05 23:36:01 -0600 |
commit | f1113a5089531a327f118594223472a004a71be2 (patch) | |
tree | 0ff8052d3a9fa223fbd8b05652c73d923046c3bd /src | |
parent | 4355e3e17b1ea5dd72f05c623bbfef37df1c46a4 (diff) | |
download | noteless-f1113a5089531a327f118594223472a004a71be2.tar.gz noteless-f1113a5089531a327f118594223472a004a71be2.tar.xz |
Fixed edit bug created by last commit
Was opening the editor on the base directory when trying to edit any note,
rather than opening the note for edit.
The issue was caused by using the wrong variable to set the class variable
_path, which is used when editing notes.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/note.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/note.cpp b/src/lib/note.cpp index 79d94fb..dac08ea 100644 --- a/src/lib/note.cpp +++ b/src/lib/note.cpp @@ -39,7 +39,7 @@ note::note( string p ) { * Creates a new empty note object since no filename was specified. */ note::note( string base, string note_name ) { - path tmp_path( base + "/" + name ); + path tmp_path( base + "/" + note_name ); _path = tmp_path; name = note_name; extension = get_extension(); |