We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc5f694 commit 84d20bdCopy full SHA for 84d20bd
src/entities/note.cpp
@@ -1473,8 +1473,12 @@ bool Note::storeNoteTextFileToDisk(bool ¤tNoteTextChanged,
1473
flags |= QIODevice::Text;
1474
}
1475
1476
+ // Check if we should ignore all changes
1477
+ const bool ignoreAllExternalModifications =
1478
+ settings.value(QStringLiteral("ignoreAllExternalModifications")).toBool();
1479
+
1480
// Check if the file was modified externally by comparing checksums
- if (fileExists() && !_fileChecksum.isEmpty()) {
1481
+ if (!ignoreAllExternalModifications && fileExists() && !_fileChecksum.isEmpty()) {
1482
// Read the current file content
1483
QFile checkFile(fullNoteFilePath());
1484
if (checkFile.open(QIODevice::ReadOnly)) {
0 commit comments