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

            Bug ID: 445336
           Summary: Resource system doesn't purge resources whose storage
                    has been removed
           Product: krita
           Version: 5.0.0-beta2
          Platform: Microsoft Windows
                OS: Microsoft Windows
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: Resource Management
          Assignee: krita-bugs-n...@kde.org
          Reporter: a...@amyspark.me
  Target Milestone: ---

SUMMARY

The resource system does not remove resources from the database on removal of
their storage. This means that a call to
KisResourceLocator::instance()->addStorage(newLocation, storage), even with a
previous call to KisResourceLocator::instance()->removeStorage(newLocation),
will yield a spam of the following:

> Could not execute tagResource statement QMap((":resource_id", QVariant(int, 
> 1520))(":tag_id", QVariant(int, 16))) QSqlError("19", "Unable to fetch row", 
> "UNIQUE constraint failed: resource_tags.tag_id, resource_tags.resource_id")
> Could not tag resource "qs_b_waterink" from "Quiraltas_SM_Brush_Set.bundle" 
> filename "qs_b_waterink.kpp" with tag "Quiralta"

This is visually reflected (if the removeStorage call is made) with multiple
entries of the same bundle in the Bundle Manager.

STEPS TO REPRODUCE
1.  Import a bundle.
2.  Try to import the bundle again.

OBSERVED RESULT

Multiple entries of the same bundle.

EXPECTED RESULT

A single entry of the bundle and no errors on import.
SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
ee19ed32f1 (upstream/krita/5.0, krita/5.0) Make sure the new name of the preset
is visible after editing.

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

Reply via email to