BUG:370566 Save a copy of the current image
This gets rid of both the delayed save dialog in KisMainWindow (which offered a cancel button that didn't work to cancel the runnin strokes), and the locking in KisDocument (which dead-locked Krita and caused dataloss). Instead, a shallow clone of the image is created that can be safely used to save. The strokes will run on the original image, which means that the result of still-running strokes is not saved. The user is warned about that. (That means a new message has been added.)
Showing
- libs/image/kis_annotation.h 13 additions, 0 deletionslibs/image/kis_annotation.h
- libs/image/kis_image.cc 98 additions, 39 deletionslibs/image/kis_image.cc
- libs/image/kis_image.h 13 additions, 1 deletionlibs/image/kis_image.h
- libs/image/kis_layer_composition.cpp 38 additions, 0 deletionslibs/image/kis_layer_composition.cpp
- libs/image/kis_layer_composition.h 2 additions, 0 deletionslibs/image/kis_layer_composition.h
- libs/image/kis_layer_utils.cpp 10 additions, 0 deletionslibs/image/kis_layer_utils.cpp
- libs/image/kis_layer_utils.h 6 additions, 0 deletionslibs/image/kis_layer_utils.h
- libs/image/kis_name_server.h 0 additions, 1 deletionlibs/image/kis_name_server.h
- libs/image/kis_node_facade.cpp 0 additions, 1 deletionlibs/image/kis_node_facade.cpp
- libs/image/kis_node_facade.h 3 additions, 1 deletionlibs/image/kis_node_facade.h
- libs/image/kis_node_graph_listener.cpp 0 additions, 1 deletionlibs/image/kis_node_graph_listener.cpp
- libs/image/kis_node_graph_listener.h 4 additions, 1 deletionlibs/image/kis_node_graph_listener.h
- libs/image/recorder/kis_node_query_path.cc 8 additions, 0 deletionslibs/image/recorder/kis_node_query_path.cc
- libs/image/recorder/kis_node_query_path.h 1 addition, 0 deletionslibs/image/recorder/kis_node_query_path.h
- libs/image/tests/kis_image_test.cpp 113 additions, 2 deletionslibs/image/tests/kis_image_test.cpp
- libs/image/tests/kis_image_test.h 1 addition, 0 deletionslibs/image/tests/kis_image_test.h
- libs/ui/CMakeLists.txt 0 additions, 2 deletionslibs/ui/CMakeLists.txt
- libs/ui/KisDocument.cpp 24 additions, 78 deletionslibs/ui/KisDocument.cpp
- libs/ui/KisDocument.h 10 additions, 0 deletionslibs/ui/KisDocument.h
- libs/ui/KisMainWindow.cpp 2 additions, 6 deletionslibs/ui/KisMainWindow.cpp
Loading
Please register or sign in to comment