Commit f30b0574 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Show the hand cursor if there is no colorize mask yet

BUG:415935
parent 963a54d5
......@@ -121,7 +121,15 @@ void KisToolLazyBrush::slotCurrentNodeChanged(KisNodeSP node)
void KisToolLazyBrush::resetCursorStyle()
{
KisToolFreehand::resetCursorStyle();
// If there's no mask yet, we show the hand cursor
if (!colorizeMaskActive() && canCreateColorizeMask()) {
useCursor(KisCursor::handCursor());
m_d->activateMaskMode = true;
setOutlineEnabled(false);
}
else {
KisToolFreehand::resetCursorStyle();
}
}
bool KisToolLazyBrush::colorizeMaskActive() const
......@@ -172,9 +180,10 @@ void KisToolLazyBrush::activatePrimaryAction()
{
KisToolFreehand::activatePrimaryAction();
if (shouldActivateKeyStrokes() ||
(!colorizeMaskActive() && canCreateColorizeMask())) {
qDebug() << "1";
if (!colorizeMaskActive() && canCreateColorizeMask()) {
qDebug() << "2";
useCursor(KisCursor::handCursor());
m_d->activateMaskMode = true;
setOutlineEnabled(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment