mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-30 11:43:33 +02:00
minor fix - need to check if encodings have changed before knowning it th ecached file should be used
This commit is contained in:
parent
47567eaf27
commit
abb8421491
1 changed files with 5 additions and 1 deletions
|
@ -116,7 +116,11 @@ public class SystemEditFileAction extends SystemBaseAction {
|
|||
boolean dirty = properties.getDirty();
|
||||
|
||||
boolean remoteNewer = (storedModifiedStamp != remoteModifiedStamp);
|
||||
return (!dirty && !remoteNewer);
|
||||
|
||||
String encoding = remoteFile.getEncoding();
|
||||
String storedEncoding = properties.getEncoding();
|
||||
|
||||
return (!dirty && !remoteNewer && (encoding != null && encoding.equals(storedEncoding)));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue