Commit d2c9df11 authored by Aurimas Černius's avatar Aurimas Černius

Fix autolinking when renaming note with no links to it

parent ce14935c
......@@ -561,6 +561,10 @@ namespace gnote {
}
}
}
else {
signal_renamed(shared_from_this(), old_title);
queue_save(CONTENT_CHANGED);
}
}
void Note::process_rename_link_update_end(int response, Gtk::Dialog *dialog,
......
......@@ -141,10 +141,11 @@ void NoteBase::process_rename_link_update(const Glib::ustring & old_title)
if(!linking_notes.empty()) {
for(NoteBase::Ptr & note : linking_notes) {
note->rename_links(old_title, self);
signal_renamed(shared_from_this(), old_title);
queue_save(CONTENT_CHANGED);
}
}
signal_renamed(shared_from_this(), old_title);
queue_save(CONTENT_CHANGED);
}
void NoteBase::rename_without_link_update(const Glib::ustring & newTitle)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment