Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 89c9b8c8 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Add notification that move-selection stroke ended unexpectedly

CCBUG:407160
parent c30616ba
......@@ -326,6 +326,18 @@ void KisToolMove::slotHandlesRectCalculated(const QRect &handlesRect)
void KisToolMove::slotStrokeStartedEmpty()
{
/**
* Notify that move-selection stroke ended unexpectedly
*/
if (m_currentlyUsingSelection) {
KisCanvas2 *kisCanvas = static_cast<KisCanvas2*>(canvas());
kisCanvas->viewManager()->
showFloatingMessage(
i18nc("floating message in move tool",
"Selected area has no pixels"),
QIcon(), 1000, KisFloatingMessage::High);
}
/**
* Since the choice of nodes for the operation happens in the
* stroke itself, it may happen that there are no nodes at all.
......
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