~vcs-imports/gnote/master

« back to all changes in this revision

Viewing changes to src/plugins/notedirectorywatcher/notedirectorywatcherapplicationaddin.cpp

  • Committer: Aurimas Černius
  • Date: 2023-07-30 19:51:47 UTC
  • Revision ID: git-v1:039e377a7ff3def536bdea60ce7f14d1960563ce
Update notedirwatcher

Show diffs side-by-side

added added

removed removed

Lines of Context:
203
203
 
204
204
  gnote::NoteBase::Ptr note_to_delete = note_manager().find_by_uri(note_uri);
205
205
  if(note_to_delete != 0) {
206
 
    note_manager().delete_note(note_to_delete);
 
206
    note_manager().delete_note(*note_to_delete);
207
207
  }
208
208
  else {
209
209
    DBG_OUT("notedirectorywatcher: did not delete %s because note not found.", note_id.c_str());
280
280
    /* TRANSLATORS: first %s is file, second is error */
281
281
    ERR_OUT(_("NoteDirectoryWatcher: Update aborted, error parsing %s: %s"), note_path.c_str(), e.what());
282
282
    if(is_new_note) {
283
 
      note_manager().delete_note(note);
 
283
      note_manager().delete_note(*note);
284
284
    }
285
285
  }
286
286
}