Revision 45679 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/DefaultProject.java
DefaultProject.java | ||
---|---|---|
371 | 371 |
|
372 | 372 |
@Override |
373 | 373 |
public boolean hasChanged() { |
374 |
// we return true if the project is not empty (until we have a better |
|
375 |
// method...) |
|
376 |
if ((this.getDocuments().size() != 0) || modified) { |
|
374 |
if( modified ) { |
|
377 | 375 |
return true; |
378 | 376 |
} |
377 |
if (this.getDocuments().isEmpty() ) { |
|
378 |
return false; |
|
379 |
} |
|
380 |
for (Document document : this.getDocuments()) { |
|
381 |
if( document.isTemporary()) { |
|
382 |
continue; |
|
383 |
} |
|
384 |
if( document.isModified() ) { |
|
385 |
return true; |
|
386 |
} |
|
387 |
} |
|
379 | 388 |
return false; |
380 | 389 |
} |
381 | 390 |
|
Also available in: Unified diff