[krita] [Bug 370720] Keyboard shortcut list is incomplete when opening Krita

2016-12-09 Thread Dmitry Kazakov
https://bugs.kde.org/show_bug.cgi?id=370720

Dmitry Kazakov  changed:

   What|Removed |Added

  Latest Commit|https://commits.kde.org/kri |https://commits.kde.org/kri
   |ta/e7652741ecf2928fb20ccb1f |ta/aeced4a1c199c4fb73d1beaa
   |c81bf56bcab853a1|82315a088c410d72

--- Comment #3 from Dmitry Kazakov  ---
Git commit aeced4a1c199c4fb73d1beaa82315a088c410d72 by Dmitry Kazakov.
Committed on 09/12/2016 at 10:05.
Pushed by dkazakov into branch 'rempt/impex-refactoring'.

All shortcuts should be configurable when no document is open

The problem happens because some actions are created/added-to-collection
only after a document is created. Now we workaround it by faking the
absent actions and deleting them together with KisActionsSnapshot.

Another problem is that some of the actions, e.g. "show_color_history",
is created long before it is added to the global action collection. It
is _created_ right at the start of Krita, but _added_ only when a new document
is constructed. If we change the shortcut between these two events, then
the changed value will be lost. Now we workaround this problem by connecting
to the action collection, listening to 'inserted()' signal and updating
shortcuts when an action is added to the collection.

M  +4-0krita/data/actions/ConnectionTool.action
M  +3-52   krita/krita.action
M  +2-0krita/kritamenu.action
M  +4-3libs/ui/KisViewManager.cpp
M  +23   -7libs/ui/kis_action_manager.cpp
M  +6-3libs/ui/kis_action_manager.h
M  +1-1libs/ui/kis_zoom_manager.cc
M  +2-16   libs/widgets/KoZoomController.cpp
M  +0-18   libs/widgets/KoZoomController.h
M  +1-2libs/widgets/KoZoomController_p.h
M  +31   -2libs/widgetutils/KisActionsSnapshot.cpp
M  +1-1libs/widgetutils/KisActionsSnapshot.h
M  +5-0libs/widgetutils/kis_action_registry.cpp
M  +3-0libs/widgetutils/kis_action_registry.h

https://commits.kde.org/krita/aeced4a1c199c4fb73d1beaa82315a088c410d72

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 370720] Keyboard shortcut list is incomplete when opening Krita

2016-12-09 Thread Dmitry Kazakov
https://bugs.kde.org/show_bug.cgi?id=370720

Dmitry Kazakov  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|CONFIRMED   |RESOLVED
  Latest Commit||https://commits.kde.org/kri
   ||ta/e7652741ecf2928fb20ccb1f
   ||c81bf56bcab853a1

--- Comment #2 from Dmitry Kazakov  ---
Git commit e7652741ecf2928fb20ccb1fc81bf56bcab853a1 by Dmitry Kazakov.
Committed on 09/12/2016 at 10:04.
Pushed by dkazakov into branch 'krita/3.1'.

All shortcuts should be configurable when no document is open

The problem happens because some actions are created/added-to-collection
only after a document is created. Now we workaround it by faking the
absent actions and deleting them together with KisActionsSnapshot.

Another problem is that some of the actions, e.g. "show_color_history",
is created long before it is added to the global action collection. It
is _created_ right at the start of Krita, but _added_ only when a new document
is constructed. If we change the shortcut between these two events, then
the changed value will be lost. Now we workaround this problem by connecting
to the action collection, listening to 'inserted()' signal and updating
shortcuts when an action is added to the collection.

M  +4-0krita/data/actions/ConnectionTool.action
M  +3-52   krita/krita.action
M  +2-0krita/kritamenu.action
M  +4-3libs/ui/KisViewManager.cpp
M  +23   -7libs/ui/kis_action_manager.cpp
M  +6-3libs/ui/kis_action_manager.h
M  +1-1libs/ui/kis_zoom_manager.cc
M  +2-16   libs/widgets/KoZoomController.cpp
M  +0-18   libs/widgets/KoZoomController.h
M  +1-2libs/widgets/KoZoomController_p.h
M  +31   -2libs/widgetutils/KisActionsSnapshot.cpp
M  +1-1libs/widgetutils/KisActionsSnapshot.h
M  +5-0libs/widgetutils/kis_action_registry.cpp
M  +3-0libs/widgetutils/kis_action_registry.h

https://commits.kde.org/krita/e7652741ecf2928fb20ccb1fc81bf56bcab853a1

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 370720] Keyboard shortcut list is incomplete when opening Krita

2016-10-14 Thread Boudewijn Rempt via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=370720

Boudewijn Rempt  changed:

   What|Removed |Added

 CC||b...@valdyas.org
 Status|UNCONFIRMED |CONFIRMED
 Ever confirmed|0   |1

--- Comment #1 from Boudewijn Rempt  ---
Hi,

Thanks for your report. I can confirm the issue. This was supposed to be fixed
in 3.0, but I guess we either have a regression, or missed something.

-- 
You are receiving this mail because:
You are watching all bug changes.