https://bugs.kde.org/show_bug.cgi?id=473719

            Bug ID: 473719
           Summary: When activating some tools, actions are always enabled
                    at first
    Classification: Applications
           Product: krita
           Version: git master (please specify the git hash!)
          Platform: Microsoft Windows
                OS: Microsoft Windows
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Tools
          Assignee: krita-bugs-n...@kde.org
          Reporter: al...@alvinhc.com
  Target Milestone: ---

SUMMARY
When activating the Select Shapes Tool (DefaultTool) or the reference image
tool, the actions in the context menu are always enabled at first, before the
current selection has changed.

STEPS TO REPRODUCE
1. Create a text shape
2. Switch back to DefaultTool
3. Right click on canvas

OBSERVED RESULT
Most actions are enabled when they shouldn't be, some (e.g. Group, Ungroup)
should not be visible at all.

EXPECTED RESULT
Some actions should not be enabled when no shapes are selected. Group and
ungroup actions should not be visible when only one shape is selected and that
shape is not ungroupable.

SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION
For DefaultTool, the actions are disabled in
DefaultTool::updateDistinctiveActions, called from DefaultTool::updateActions,
which is called from DefaultTool::activate, but they are then being re-enabled
in CanvasData::activateToolActions (KoToolManager.cpp:106), called from
KoToolManager::Private::postSwitchTool.

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

Reply via email to