diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2015-06-06 12:30:49 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-06-06 21:23:05 +0200 |
commit | 1e51b62c882b5fc1554efb46cb41c3d54157626c (patch) | |
tree | 08e81ac1382d8528584c9f237aaf8ff976e2af8a /logic/resources/IconResourceHandler.cpp | |
parent | 24db645167b42adba5d9c221215be83bef39e2a1 (diff) | |
download | MultiMC-1e51b62c882b5fc1554efb46cb41c3d54157626c.tar MultiMC-1e51b62c882b5fc1554efb46cb41c3d54157626c.tar.gz MultiMC-1e51b62c882b5fc1554efb46cb41c3d54157626c.tar.lz MultiMC-1e51b62c882b5fc1554efb46cb41c3d54157626c.tar.xz MultiMC-1e51b62c882b5fc1554efb46cb41c3d54157626c.zip |
NOISSUE Comment and bugfix the Resource system
Diffstat (limited to 'logic/resources/IconResourceHandler.cpp')
-rw-r--r-- | logic/resources/IconResourceHandler.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/logic/resources/IconResourceHandler.cpp b/logic/resources/IconResourceHandler.cpp index d47dcc3d..99353b6c 100644 --- a/logic/resources/IconResourceHandler.cpp +++ b/logic/resources/IconResourceHandler.cpp @@ -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()); } |