Adapt custom stylesheet path to new default install location
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 12 Feb 2015 21:24:34 +0000 (22:24 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 12 Feb 2015 21:24:34 +0000 (22:24 +0100)
commit99f2e2d215d9d6c3486694f7a55b54ea3bc2e62e
tree015e9f8f15fa401937f8094ab5ec298dbbb00a29
parent2fabb938a014186c2aa7aa1a1b885c6afa353f1e
Adapt custom stylesheet path to new default install location

When switching from a KDE4 build to Qt5/KF5, the default install
location for data files switches from /usr/share/apps/quassel to
/usr/share/quassel, as is standard. Users who have selected one of
the pre-installed stylesheets will use that setting.

Thus, if a custom stylesheet is configured and points to /usr/share/apps,
in case it is not found we will now try and look into /usr/share as well.
If we find the stylesheet in the new location, we'll also update the
stored setting.
src/uisupport/uistyle.cpp