mirror of
git://projects.qi-hardware.com/fped.git
synced 2025-04-21 12:27:27 +03:00
Make delete feel "safer".
- objects are now deleted by selecting them, then clicking on the delete icon - removed tool_ops.click, which was only there because of delete git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5419 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
@@ -118,6 +118,8 @@ int inst_select(struct coord pos)
|
||||
deselect_outside();
|
||||
edit_nothing();
|
||||
selected_inst = NULL;
|
||||
if (selected_inst)
|
||||
tool_selected_inst(NULL);
|
||||
FOR_INST_PRIOS_DOWN(prio) {
|
||||
if (!show(prio))
|
||||
continue;
|
||||
@@ -154,6 +156,7 @@ int inst_select(struct coord pos)
|
||||
|
||||
selected:
|
||||
set_path(1);
|
||||
tool_selected_inst(selected_inst);
|
||||
if (selected_inst->ops->select)
|
||||
selected_inst->ops->select(selected_inst);
|
||||
return 1;
|
||||
@@ -263,8 +266,10 @@ int inst_anchors(struct inst *inst, struct vec ***anchors)
|
||||
|
||||
void inst_deselect(void)
|
||||
{
|
||||
if (selected_inst)
|
||||
if (selected_inst) {
|
||||
set_path(0);
|
||||
tool_selected_inst(NULL);
|
||||
}
|
||||
deselect_outside();
|
||||
status_set_type_x("");
|
||||
status_set_type_y("");
|
||||
|
||||
Reference in New Issue
Block a user