Tools deselection possible
Bug #602653 reported by
thecursedfly
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pinta |
Fix Released
|
Low
|
Unassigned |
Bug Description
Actual bug: It's possible to deselect a tool and still continue to use it.
How it should be: There should always be one selected tool and it shouldn't be possible to deselect them clicking on their icon.
Changed in pinta: | |
importance: | Undecided → Low |
status: | New → Confirmed |
To post a comment you must log in.
ToolManager.cs, mClicked method) :
this code (on HandlePbToolIte
// Don't let the user unselect the current tool
if (t.Name == CurrentTool.Name) {
tb.Active = true;
return;
}
doesn't work as intended, because the odd behaviour when we set ToolItem.Active property.
on SetCurrentTool method : Active = true; // this code will also invoke Clicked event handler Active = true; // duplicate code to show the odd. this code doesn't invoke Clicked event handler Chrome. ToolToolBar) ;
// Load new tool
index = i;
tool.ToolItem.
tool.ToolItem.
tool.DoActivated ();
tool.DoBuildToolBar (PintaCore.
Maybe it's GTK# bug ?