mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
VEdit set the modified to false when saving file
Signed-off-by: Le Tan <tamlokveer@gmail.com>
This commit is contained in:
parent
53bce98db6
commit
35f8d7350c
@ -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()
|
||||||
|
@ -201,7 +201,6 @@ bool VEditor::saveFile()
|
|||||||
textEditor->setModified(true);
|
textEditor->setModified(true);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
textEditor->setModified(false);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user