diff options
author | Petr Mrázek <peterix@gmail.com> | 2018-11-04 13:18:35 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2018-11-04 13:18:35 +0100 |
commit | 58260da861a51d503fa6fb08f67918cc8dddd36f (patch) | |
tree | 3b355c675c356b328607b7d145f175bab2f6ed8e /application | |
parent | 16cc20aefdccac7f68819b9c7bc6532a5f027b8b (diff) | |
download | MultiMC-58260da861a51d503fa6fb08f67918cc8dddd36f.tar MultiMC-58260da861a51d503fa6fb08f67918cc8dddd36f.tar.gz MultiMC-58260da861a51d503fa6fb08f67918cc8dddd36f.tar.lz MultiMC-58260da861a51d503fa6fb08f67918cc8dddd36f.tar.xz MultiMC-58260da861a51d503fa6fb08f67918cc8dddd36f.zip |
NOISSUE remove use of obsolete URL constants, simplify the rest
Diffstat (limited to 'application')
-rw-r--r-- | application/MainWindow.cpp | 2 | ||||
-rw-r--r-- | application/pages/global/AccountListPage.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp index a636f499..20482ce4 100644 --- a/application/MainWindow.cpp +++ b/application/MainWindow.cpp @@ -758,7 +758,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new MainWindow for (auto profile : account->profiles()) { auto meta = Env::getInstance().metacache()->resolveEntry("skins", profile.id + ".png"); - auto action = Net::Download::makeCached(QUrl("https://" + URLConstants::SKINS_BASE + profile.id + ".png"), meta); + auto action = Net::Download::makeCached(QUrl(URLConstants::SKINS_BASE + profile.id + ".png"), meta); skin_dls.append(action); meta->setStale(true); } diff --git a/application/pages/global/AccountListPage.cpp b/application/pages/global/AccountListPage.cpp index b89c410f..a984e946 100644 --- a/application/pages/global/AccountListPage.cpp +++ b/application/pages/global/AccountListPage.cpp @@ -131,7 +131,7 @@ void AccountListPage::addAccount(const QString &errMsg) for (AccountProfile profile : account->profiles()) { auto meta = Env::getInstance().metacache()->resolveEntry("skins", profile.id + ".png"); - auto action = Net::Download::makeCached(QUrl("https://" + URLConstants::SKINS_BASE + profile.id + ".png"), meta); + auto action = Net::Download::makeCached(QUrl(URLConstants::SKINS_BASE + profile.id + ".png"), meta); job->addNetAction(action); meta->setStale(true); } |