diff options
author | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-04-07 14:42:07 +0300 |
---|---|---|
committer | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-04-07 14:42:07 +0300 |
commit | d4cce391f9836996667067771e4ce9ca64d3fb3c (patch) | |
tree | 028241780453a25bafc23862bad475aa16cc8ddc /libresourceqt/src/resource-set.cpp | |
parent | a19a377ae930d54beb98dbe1f6171c6d39ddea80 (diff) |
fixed bug #161198
Diffstat (limited to 'libresourceqt/src/resource-set.cpp')
-rw-r--r-- | libresourceqt/src/resource-set.cpp | 4 |
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) |