diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-04-17 15:01:51 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-04-17 15:01:51 +0200 |
commit | bf75a2b6b184a3504cdee4b88a6db4a82c6da150 (patch) | |
tree | 841434e105e89e6a5ef1b6bbe3c1b43a5dd2e499 /common/resourceconfig.cpp | |
parent | c3040251dd4d9e8d00cbccdeb693b11a72077c73 (diff) | |
download | sink-bf75a2b6b184a3504cdee4b88a6db4a82c6da150.tar.gz sink-bf75a2b6b184a3504cdee4b88a6db4a82c6da150.zip |
Don't encode the resource type into the identifier
Diffstat (limited to 'common/resourceconfig.cpp')
-rw-r--r-- | common/resourceconfig.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/resourceconfig.cpp b/common/resourceconfig.cpp index cfde4e9..a4e5fc5 100644 --- a/common/resourceconfig.cpp +++ b/common/resourceconfig.cpp | |||
@@ -71,6 +71,11 @@ QMap<QByteArray, QByteArray> ResourceConfig::getResources() | |||
71 | return resources; | 71 | return resources; |
72 | } | 72 | } |
73 | 73 | ||
74 | QByteArray ResourceConfig::getResourceType(const QByteArray &identifier) | ||
75 | { | ||
76 | return getResources().value(identifier); | ||
77 | } | ||
78 | |||
74 | void ResourceConfig::clear() | 79 | void ResourceConfig::clear() |
75 | { | 80 | { |
76 | auto settings = getConfig("resources"); | 81 | auto settings = getConfig("resources"); |