Bug 566768 - Editing the first file does not enable "Save" actions
Summary: Editing the first file does not enable "Save" actions
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 9.11.1   Edit
Hardware: PC Windows 10
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-08 04:25 EDT by Benjamin Bihler CLA
Modified: 2020-09-08 04:25 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Bihler CLA 2020-09-08 04:25:58 EDT
Opening one file and editing it will make the file "dirty" and it will enable the "SaveAll" button, but the "Save" tool button and the "Save" and "Save As..." menu actions will stay disabled. This is not a major problem, but it is annoying.

This is a step by step guide how to reproduce the problem.

- Install Eclipse CDT 9.11.1
- Create a new workspace
- File->New C/C++ Project->C++ Managed Build (Project name "Test", Project type "Executable->Empty Project->Cross GCC", default configurations ("Debug", "Release"), empty compiler strings)
- New Source Folder "src"
- New Class "Test"
- Now close eclipse, restart and launch the former workspace
- Open "Test.cpp"
- Modify the file in the editor

Result here: the file is marked dirty, the "SaveAll" button is enabled, the "Save" button stays disabled, the menu entries "File->Save" and "File->Save As..." stay disabled. Saving the file is ONLY possible by triggering "SaveAll" either by using the toolbar button or the file menu.

When opening "Test.h" as second file now and editing it (making it "dirty"), the bug vanishes and everything works as expected. The problem also doesn't appear, if in a newly launched workspace two files are opened and the SECOND file is edited.