Bug 314029

Summary: Layer Docker is empty when loading an image form Recent Documents menu
Product: [Applications] krita Reporter: Dmitry Kazakov <dimula73>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: halla, sven.langkamp
Priority: NOR Keywords: release_blocker
Version First Reported In: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Dmitry Kazakov 2013-01-28 14:48:50 UTC
1) Create a Custom Image (say, 3000x2000px)
2) Press File->Open Recent-><some recent .kra or .psd file>

Result:
1) Custom image is closed (expected)
2) Opened file has no layers in the layers docker (not expected ;) )
Comment 1 Halla Rempt 2013-01-28 15:18:10 UTC
Yes, I can confirm that.
Comment 2 Halla Rempt 2013-01-28 15:19:06 UTC
It also happens in 2.6. Only the recent files _menu_ is implicated, recent images in the start screen aren't
Comment 3 Sven Langkamp 2013-01-31 08:41:32 UTC
When the old view is deleted, the last thing it does is to unset the canvas. That wipes the layers from the layer box. Not sure how to solve that yet.
Comment 4 Sven Langkamp 2013-01-31 17:10:27 UTC
Git commit 48e9e2cc5ccc25aaf630fef52a5ad04c8d0b3e3b by Sven Langkamp.
Committed on 31/01/2013 at 18:08.
Pushed by langkamp into branch 'master'.

Delete old view before creating a new view
REVIEW:108683

M  +4    -3    libs/main/KoMainWindow.cpp

http://commits.kde.org/calligra/48e9e2cc5ccc25aaf630fef52a5ad04c8d0b3e3b
Comment 5 Sven Langkamp 2013-02-02 13:10:22 UTC
Had to revert the fix after side effects on Sheets.
Comment 6 Sven Langkamp 2013-02-03 12:11:59 UTC
Git commit d59175f802b17379de928f4459ebf36d3a8c64c8 by Sven Langkamp.
Committed on 03/02/2013 at 13:08.
Pushed by langkamp into branch 'master'.

Fix for unsetting the canvas
REVIEW:108725

M  +2    -2    krita/plugins/extensions/dockers/flipbook/flipbookdocker_dock.cpp
M  +3    -3    libs/flake/KoCanvasControllerWidget.cpp
M  +27   -1    libs/flake/KoCanvasObserverBase.cpp
M  +20   -0    libs/flake/KoCanvasObserverBase.h
M  +1    -7    libs/main/KoModeBox.cpp
M  +2    -1    sheets/part/View.cpp
M  +2    -1    words/part/KWGui.cpp

http://commits.kde.org/calligra/d59175f802b17379de928f4459ebf36d3a8c64c8