mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:27:34 +00:00
PixelPaint: Fix crash when started with path
This change fixes the initial tool selection when pixelpaint is started with a path. Previously an already existing editor was expected when the default tool was initially propagated - which was not the case if pixelpaint was launched to directly load an existing image.
This commit is contained in:
parent
4e09ee1f2f
commit
82e85172e5
3 changed files with 17 additions and 8 deletions
|
@ -30,6 +30,7 @@ public:
|
|||
}
|
||||
|
||||
Tool* active_tool() const { return m_active_tool; }
|
||||
void ensure_tool_selection();
|
||||
|
||||
private:
|
||||
friend class ToolButton;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue