diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-03-01 22:20:57 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-03-01 22:20:57 +0100 |
commit | ceec70e014db629aa8ba3472839cc42781d73d4c (patch) | |
tree | 1de0150b51fceb85d9ffa330b3dcd70580b33082 /gui/pages/global/AccountListPage.h | |
parent | ef34cafe174271a423418d7eb68c4b4096642223 (diff) | |
download | MultiMC-ceec70e014db629aa8ba3472839cc42781d73d4c.tar MultiMC-ceec70e014db629aa8ba3472839cc42781d73d4c.tar.gz MultiMC-ceec70e014db629aa8ba3472839cc42781d73d4c.tar.lz MultiMC-ceec70e014db629aa8ba3472839cc42781d73d4c.tar.xz MultiMC-ceec70e014db629aa8ba3472839cc42781d73d4c.zip |
GH-796 Icon theme loading workaround
Replacing the Qt machinery with other Qt machinery under our control
Diffstat (limited to 'gui/pages/global/AccountListPage.h')
-rw-r--r-- | gui/pages/global/AccountListPage.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gui/pages/global/AccountListPage.h b/gui/pages/global/AccountListPage.h index 87f773d9..9fd894b8 100644 --- a/gui/pages/global/AccountListPage.h +++ b/gui/pages/global/AccountListPage.h @@ -21,6 +21,7 @@ #include "gui/pages/BasePage.h" #include "logic/auth/MojangAccountList.h" +#include <MultiMC.h> namespace Ui { @@ -42,10 +43,10 @@ public: } QIcon icon() const override { - auto icon = QIcon::fromTheme("accounts"); + auto icon = MMC->getThemedIcon("accounts"); if(icon.isNull()) { - icon = QIcon::fromTheme("noaccount"); + icon = MMC->getThemedIcon("noaccount"); } return icon; } |