summaryrefslogtreecommitdiff
path: root/libresourceqt/src/resource-set.cpp
diff options
context:
space:
mode:
authorWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-04-07 14:42:07 +0300
committerWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-04-07 14:42:07 +0300
commitd4cce391f9836996667067771e4ce9ca64d3fb3c (patch)
tree028241780453a25bafc23862bad475aa16cc8ddc /libresourceqt/src/resource-set.cpp
parenta19a377ae930d54beb98dbe1f6171c6d39ddea80 (diff)
fixed bug #161198
Diffstat (limited to 'libresourceqt/src/resource-set.cpp')
-rw-r--r--libresourceqt/src/resource-set.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libresourceqt/src/resource-set.cpp b/libresourceqt/src/resource-set.cpp
index af0a6fc..b7a302b 100644
--- a/libresourceqt/src/resource-set.cpp
+++ b/libresourceqt/src/resource-set.cpp
@@ -58,6 +58,8 @@ void ResourceSet::addResourceObject(Resource *resource)
{
if(resource == NULL)
return;
+ delete resourceSet[resource->type()];
+ resourceSet[resource->type()] = resource;
if (resource->type() == AudioPlaybackType) {
audioResource = static_cast<AudioResource *>(resource);
QObject::connect(audioResource,
@@ -73,8 +75,6 @@ void ResourceSet::addResourceObject(Resource *resource)
registerAudioProperties();
}
}
- delete resourceSet[resource->type()];
- resourceSet[resource->type()] = resource;
}
bool ResourceSet::addResource(ResourceType type)