Commit 06fc7bac authored by Scott Petrovic's avatar Scott Petrovic

make sure pop up palette can select a brush. It was hiding itself too often

parent 256d84ea
......@@ -469,7 +469,7 @@ void KisPopupPalette::mouseReleaseEvent(QMouseEvent * event)
QPointF point = event->posF();
event->accept();
if (event->button() == Qt::LeftButton) {
if (event->button() == Qt::LeftButton || event->button() == Qt::RightButton) {
QPainterPath pathBrush(drawDonutPathFull(width() / 2, height() / 2, brushInnerRadius, brushOuterRadius));
QPainterPath pathColor(drawDonutPathFull(width() / 2, height() / 2, colorInnerRadius, colorOuterRadius));
......@@ -486,8 +486,6 @@ void KisPopupPalette::mouseReleaseEvent(QMouseEvent * event)
emit sigUpdateRecentColor(pos);
}
}
} else if (event->button() == Qt::RightButton) {
showPopupPalette(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