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

            Bug ID: 511247
           Summary: Tenbrushes shows an exception if a shortcut is pressed
                    before opening a document
    Classification: Applications
           Product: krita
      Version First 5.2.13
       Reported In:
          Platform: NixOS
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Scripting
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY
Tenbrushes shows an exception if a shortcut is pressed before opening a
document:
>  File 
> "/nix/store/32971d6d6i9rgfg641vdfhklm726sliw-krita-unwrapped-5.2.13/share/krita/pykrita/>tenbrushes/tenbrushes.py",
>  line 107, in activatePreset
>    preset = window.views()[0].currentBrushPreset()
>             ~~~~~~~~~~~~~~^^^
> 
> IndexError: list index out of range

STEPS TO REPRODUCE
1. Assign a key to a tenbrushes shortcut.
2. Press the key on the home window, with no documents open.

OBSERVED RESULT
Exception dialog box appears.

EXPECTED RESULT
Nothing happens.

SOFTWARE/OS VERSIONS
Operating System: NixOS 25.11
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.2
Kernel Version: 6.17.1-zen1 (64-bit)
Graphics Platform: X11
Processors: 24 × AMD Ryzen 9 3900X 12-Core Processor
Memory: 64 GiB of RAM (62.7 GiB usable)
Graphics Processor: AMD Radeon RX 7900 XTX

ADDITIONAL INFORMATION
The exception box can be closed an the program can continue normally.

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

Reply via email to