Opened 3 years ago

Last modified 3 years ago

#17193 new enhancement

Always open the Warning Box Dialog when the Del Key is pressed from the Layers Panel to avoid Silent erase of files

Reported by: pierzen Owned by: team
Priority: normal Milestone:
Component: Core Version: latest
Keywords: Cc:


Successive actions are often necessary for validation of data, swithching the Focus from the Map to the Layers Panel, hiding/showing data to see the background image, and swithching back to the Map Panel.

Doing this repeatively, it is quite easy to forget to swich back to the Map Panel. While the focus is still in the Layers Panel, Pressing the Del key can have quite a Destructive behavior, erasing the OSM file without a Warning Message. This will happen if the OSM File is selected and no data to send to the OSM API at this point of edition.

While Validating contributors on a community project, we upload regularly to avoid Edit conflicts and often there is no data in the OSM file at this point to send to the OSM API. It is also often difficult to reproduce the OSM file as it was at this point. Also quite annoying, we loose information about the progress of the Validation (List of Objects to review from the ToDo list for example) and have to restart validating previously validated stuff in the file.

How to reproduce

Open a new OSM layer. Either add data or not. Move cursor to the Layers Panel and either select the OSM file or Hide / Reshow the OSM data. At this point, while the focus is still in the Layers Panel, press the Del Key and the OSM file is silently erased.

On the contrary, if the OSM file contains data not yet uploaded, The Warning Dialog is showed. With the focus in the Layers Panel, we suggest that this should always be the case facilitate the validation process.

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by GerdP

I've also seen this problem in the past and would prefer to be asked when I delete the data layer. I'd say we should add an option to allow that.

comment:2 Changed 3 years ago by Don-vip

related: #10832 #12483

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain team.
as The resolution will be set.
to The owner will be changed from team to the specified user.
The owner will change to pierzen
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.