Diffusion Krita d07168fcd08e

Fix ordering of the resource paths (random resources/tags resets should go now!)

Authored by dkazakov on May 5 2016, 11:09 AM.

Description

Fix ordering of the resource paths (random resources/tags resets should go now!)

Need help testing on all OS types now! This patch should fix the
random resetting of all the user resources on restarting Krita. It
happened, because Krita randomly tried to load them from the
system-wide settings instead of the local user one

Patch contents:

  1. Resources fetched using QStandardPaths::locateAll() should have absolute priority over our own paths. That is caused by the fact that Qt sorts the returned resources by the usage priority, that is ~/.local/* will be first in the list. Whereas our resources are usually meant to be system-wide and not writable.
  1. For the same reason we should never use QSet over the returned resources, since it doesn't preserve ordering
  1. This patch should also fix random 'Tags' resetting when restarting Krita.

BUG:361971
Fixes T2418
CC:kimageshop@kde.org

Details

Committed
dkazakovMay 5 2016, 11:09 AM
Parents
R37:0974f204dfec: Add i18n to the popup menus in Krita's Timeline Docker
Branches
Unknown
Tags
Unknown
Tasks
T2418: Shortcuts bugs