mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +02:00
[276103] Files with names in different cases are not handled properly
This commit is contained in:
parent
ebf19c79d2
commit
ba872f8882
1 changed files with 4 additions and 1 deletions
|
@ -3302,7 +3302,10 @@ public class SystemViewRemoteFileAdapter
|
|||
|
||||
IEditorPart editor = editable.getEditorPart();
|
||||
boolean editorWasClosed = false;
|
||||
if (editor.isDirty()){
|
||||
if (editor == null){
|
||||
editorWasClosed = true;
|
||||
}
|
||||
else if (editor.isDirty()){
|
||||
editorWasClosed = editor.getEditorSite().getPage().closeEditor(editor, true);
|
||||
if (editorWasClosed)
|
||||
editable.doImmediateSaveAndUpload();
|
||||
|
|
Loading…
Add table
Reference in a new issue