Fixed bug in which a newly created and unedited project would never get saved because it had the same modified time and last save time.
git-svn-id: http://google-refine.googlecode.com/svn/trunk@1530 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
1f1586715d
commit
4ccdbc8716
@ -212,7 +212,10 @@ public abstract class ProjectManager {
|
||||
|
||||
if (project != null) {
|
||||
boolean hasUnsavedChanges =
|
||||
metadata.getModified().getTime() > project.getLastSave().getTime();
|
||||
metadata.getModified().getTime() >= project.getLastSave().getTime();
|
||||
// We use >= instead of just > to avoid the case where a newly created project
|
||||
// has the same modified and last save times, resulting in the project not getting
|
||||
// saved at all.
|
||||
|
||||
if (hasUnsavedChanges) {
|
||||
long msecsOverdue = startTimeOfSave.getTime() - project.getLastSave().getTime();
|
||||
|
Loading…
Reference in New Issue
Block a user