mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-13 20:15:22 +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();
|
IEditorPart editor = editable.getEditorPart();
|
||||||
boolean editorWasClosed = false;
|
boolean editorWasClosed = false;
|
||||||
if (editor.isDirty()){
|
if (editor == null){
|
||||||
|
editorWasClosed = true;
|
||||||
|
}
|
||||||
|
else if (editor.isDirty()){
|
||||||
editorWasClosed = editor.getEditorSite().getPage().closeEditor(editor, true);
|
editorWasClosed = editor.getEditorSite().getPage().closeEditor(editor, true);
|
||||||
if (editorWasClosed)
|
if (editorWasClosed)
|
||||||
editable.doImmediateSaveAndUpload();
|
editable.doImmediateSaveAndUpload();
|
||||||
|
|
Loading…
Add table
Reference in a new issue