Browse Source

VEdit set the modified to false when saving file

Signed-off-by: Le Tan <[email protected]>
Le Tan 9 years ago
parent
commit
35f8d7350c
2 changed files with 1 additions and 1 deletions
  1. 1 0
      src/vedit.cpp
  2. 0 1
      src/veditor.cpp

+ 1 - 0
src/vedit.cpp

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

+ 0 - 1
src/veditor.cpp

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