MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / saveContents

Method saveContents

nixnote.cpp:1947–1957  ·  view source on GitHub ↗

Check for dirty notes and save the contents

Source from the content-addressed store, hash-verified

1945//* Check for dirty notes and save the contents
1946//*******************************************************
1947void NixNote::saveContents() {
1948 for (int i=0; i<tabWindow->browserList->size(); i++) {
1949 qint32 lid = tabWindow->browserList->at(i)->lid;
1950 // Check if the note is dirty
1951 if (tabWindow->browserList->at(i)->editor->isDirty) {
1952 tabWindow->browserList->at(i)->saveNoteContent();
1953 noteTableView->refreshCell(lid, NOTE_TABLE_IS_DIRTY_POSITION, true);
1954 }
1955
1956 }
1957}
1958
1959
1960

Callers 2

synchronizeMethod · 0.95
viewNoteHistoryMethod · 0.95

Calls 2

saveNoteContentMethod · 0.80
refreshCellMethod · 0.80

Tested by

no test coverage detected