VEdit set the modified to false when saving file

Signed-off-by: Le Tan <tamlokveer@gmail.com>
This commit is contained in:
Le Tan 2016-10-30 17:19:02 +08:00
parent 53bce98db6
commit 35f8d7350c
2 changed files with 1 additions and 1 deletions

View File

@ -98,6 +98,7 @@ void VEdit::saveFile()
default: default:
qWarning() << "error: unknown doc type" << int(noteFile->docType); qWarning() << "error: unknown doc type" << int(noteFile->docType);
} }
document()->setModified(false);
} }
void VEdit::reloadFile() void VEdit::reloadFile()

View File

@ -201,7 +201,6 @@ bool VEditor::saveFile()
textEditor->setModified(true); textEditor->setModified(true);
return false; return false;
} }
textEditor->setModified(false);
return true; return true;
} }