summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNullspoon <nullspoon@iohq.net>2014-09-05 23:36:01 -0600
committerNullspoon <nullspoon@iohq.net>2014-09-05 23:36:01 -0600
commitf1113a5089531a327f118594223472a004a71be2 (patch)
tree0ff8052d3a9fa223fbd8b05652c73d923046c3bd /src
parent4355e3e17b1ea5dd72f05c623bbfef37df1c46a4 (diff)
downloadnoteless-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.cpp2
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();

Generated by cgit