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

            Bug ID: 421609
           Summary: Splice corrupts connectedSources array of an
                    executable data source
           Product: frameworks-plasma
           Version: 5.68.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: libplasma
          Assignee: notm...@gmail.com
          Reporter: lukasz.wojnilow...@gmail.com
                CC: plasma-b...@kde.org
  Target Milestone: ---

Created attachment 128508
  --> https://bugs.kde.org/attachment.cgi?id=128508&action=edit
test case

SUMMARY

My PlasmaCore.DataSource identified by id=dataSource initially has four
elements
connectedSources : ["date --date='@20000000000'", "date --date='@20000000001'",
"date --date='@20000000002'", "date --date='@20000000003'"]

I get rid of the first element by:
dataSource.connectedSources.splice(0,1)
and afterwards dataSource.connectedSources gets corrupted.


STEPS TO REPRODUCE
1. download and unpack my test case
2. run install-and-run-plasmoid.sh in konsole
3. look for the console output

OBSERVED RESULT
connectedSources contains:
date --date='@20000000001',date --date='@20000000001',date
--date='@20000000003'


EXPECTED RESULT
connectedSources should contain:
date --date='@20000000001',date --date='@20000000002',date
--date='@20000000003'


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 32
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.68
Qt Version: 5.13.2

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

Reply via email to