Diffusion Krita 3ce218ca6674

Don't let the user close the document while saving is in progress

Authored by dkazakov on May 1 2017, 7:13 AM.

Description

Don't let the user close the document while saving is in progress

Ideally, we should postpone closing till the saving is finished,
but it is impossible to do right now, because doc->setModified()
is called outside the saving lock held. Later, when we refactor
the saving code and the modified state will be cleared under
the lock, we can easily use KisSignalCompressor to close the
document.

The crash itself happened because the hack in KisPart::removeView()
just skipped the deinitialization of the view and the input manager
was still connected to the canvas that was destroyed.

BUG:378538

Details

Committed
dkazakovMay 1 2017, 7:13 AM
Parents
R37:bc0aad9f0e5b: Don't scale down too small previews for the transform tool
Branches
Unknown
Tags
Unknown