@@ -112,7 +112,7 @@ bool VFile::isInternalImageFolder(const QString &p_path) const
bool VFile::isChangedOutside() const
{
QDateTime lm = QFileInfo(fetchPath()).lastModified();
- return lm != m_lastModified;
+ return lm.toSecsSinceEpoch() != m_lastModified.toSecsSinceEpoch();
}
void VFile::reload()
@@ -339,6 +339,7 @@ bool VMdTab::saveFile()
QMessageBox::Ok, QMessageBox::Ok, this);
ret = false;
} else {
+ m_checkFileChange = false;
m_editor->saveFile();
ret = m_file->save();
if (!ret) {