summaryrefslogtreecommitdiffstats
path: root/common/resourceconfig.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-04-17 15:01:51 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-04-17 15:01:51 +0200
commitbf75a2b6b184a3504cdee4b88a6db4a82c6da150 (patch)
tree841434e105e89e6a5ef1b6bbe3c1b43a5dd2e499 /common/resourceconfig.cpp
parentc3040251dd4d9e8d00cbccdeb693b11a72077c73 (diff)
downloadsink-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.cpp5
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
74QByteArray ResourceConfig::getResourceType(const QByteArray &identifier)
75{
76 return getResources().value(identifier);
77}
78
74void ResourceConfig::clear() 79void ResourceConfig::clear()
75{ 80{
76 auto settings = getConfig("resources"); 81 auto settings = getConfig("resources");