NOISSUE Comment and bugfix the Resource system

This commit is contained in:
Jan Dalheimer 2015-06-06 12:30:49 +02:00 committed by Petr Mrázek
parent 24db645167
commit 1e51b62c88
12 changed files with 180 additions and 86 deletions

View file

@ -15,6 +15,7 @@ void IconResourceHandler::setTheme(const QString &theme)
{
m_theme = theme;
// notify everyone
for (auto handler : m_iconHandlers)
{
std::shared_ptr<IconResourceHandler> ptr = handler.lock();
@ -28,6 +29,7 @@ void IconResourceHandler::setTheme(const QString &theme)
void IconResourceHandler::init(std::shared_ptr<ResourceHandler> &ptr)
{
m_iconHandlers.append(std::dynamic_pointer_cast<IconResourceHandler>(ptr));
// we always have a result, so lets report it now!
setResult(get());
}