- fix: Before run a project's executable, we should check timestamp for project files AND modification states of files openned in editor.

This commit is contained in:
Roy Qu 2022-10-29 18:19:45 +08:00
parent 3112cb03d4
commit b9aceb420b
2 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,7 @@ Red Panda C++ Version 2.1
- reduce size of the executable of win-git-askpass tool
- change: remove "Optimize for the following machine" and "Optimize less, while maintaining full compatibility" options in the compiler setting panel, which are obseleted.
- change: escape spaces in the executabe path under linux.
- fix: Before run a project's executable, we should check timestamp for project files AND modification states of files openned in editor.
Red Panda C++ Version 2.0

View File

@ -164,6 +164,9 @@ bool Project::unitsModifiedSince(const QDateTime& time)
qDebug()<<info.lastModified()<<time;
return true;
}
Editor * e=unitEditor(unit);
if (e && e->modified())
return true;
}
return false;
}