[calligra] krita/image: Cancel all running strokes when the queue gets destructed.

Dmitry Kazakov dimula73 at gmail.com
Thu Jun 28 18:45:17 UTC 2012


Cancelling the stroke does not cancel them immediately. It just adds the
jobs to cancel them. So you just grow the queue with doing this. What bug
you were fixing with it?

On Thu, Jun 28, 2012 at 5:54 PM, Boudewijn Rempt <boud at valdyas.org> wrote:

> Git commit e0f5d156f61e16fca41801adb090bcc49f263ac5 by Boudewijn Rempt.
> Committed on 28/06/2012 at 15:52.
> Pushed by rempt into branch 'master'.
>
> Cancel all running strokes when the queue gets destructed.
>
> M  +4    -0    krita/image/kis_strokes_queue.cpp
>
> http://commits.kde.org/calligra/e0f5d156f61e16fca41801adb090bcc49f263ac5
>
> diff --git a/krita/image/kis_strokes_queue.cpp
> b/krita/image/kis_strokes_queue.cpp
> index 7ef64a5..86783ac 100644
> --- a/krita/image/kis_strokes_queue.cpp
> +++ b/krita/image/kis_strokes_queue.cpp
> @@ -40,6 +40,10 @@ KisStrokesQueue::KisStrokesQueue()
>
>  KisStrokesQueue::~KisStrokesQueue()
>  {
> +    foreach(KisStrokeSP stroke, m_d->strokesQueue) {
> +        stroke->cancelStroke();
> +    }
> +
>     delete m_d;
>  }
>
>


-- 
Dmitry Kazakov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kimageshop/attachments/20120628/26f9a0ad/attachment.html>


More information about the kimageshop mailing list