Diffusion Krita dbdf2f2a42b6

BUG:376993 Don't crash when a file layer is deleted

Authored by rempt on Feb 28 2017, 2:22 PM.

Description

BUG:376993 Don't crash when a file layer is deleted

QFileSystemWatcher cannot be deleted in a different thread from
where it was created. That did happen when a file layer was deleted
after converting it to a paint layer when the undo command was
pushed off the stack.

This change creates a single static QFileSystemWatcher that all
file layers connect to. fileChanged checks that the changed file
is the right one before setting the fileChanged flag.

Details

Committed
remptFeb 28 2017, 2:22 PM
Parents
R37:dbbf67ef5d86: Fix saving of settings
Branches
Unknown
Tags
Unknown