diff options
author | Petr Mrázek <peterix@gmail.com> | 2019-07-09 22:04:52 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2019-07-09 22:04:52 +0200 |
commit | 725ec356350175ba08bca0eae8475dc2654dd10a (patch) | |
tree | 84e2d17c247dcca19cb14e7f033201286a166b00 /api/logic | |
parent | 739a86f17194e60f44767d5830d7c214edc5d276 (diff) | |
download | MultiMC-725ec356350175ba08bca0eae8475dc2654dd10a.tar MultiMC-725ec356350175ba08bca0eae8475dc2654dd10a.tar.gz MultiMC-725ec356350175ba08bca0eae8475dc2654dd10a.tar.lz MultiMC-725ec356350175ba08bca0eae8475dc2654dd10a.tar.xz MultiMC-725ec356350175ba08bca0eae8475dc2654dd10a.zip |
NOISSUE recognize curseforge URLs dropped on top of MultiMC
Diffstat (limited to 'api/logic')
-rw-r--r-- | api/logic/modplatform/flame/UrlResolvingTask.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/api/logic/modplatform/flame/UrlResolvingTask.cpp b/api/logic/modplatform/flame/UrlResolvingTask.cpp index 9d53e7e5..efea350c 100644 --- a/api/logic/modplatform/flame/UrlResolvingTask.cpp +++ b/api/logic/modplatform/flame/UrlResolvingTask.cpp @@ -21,6 +21,11 @@ void Flame::UrlResolvingTask::resolveUrl() { setStatus(tr("Resolving URL...")); setProgress(0, 1); + QUrl actualUrl(m_url); + if(actualUrl.host() != "www.curseforge.com") { + emitFailed(tr("Not a Twitch URL.")); + return; + } m_dljob.reset(new NetJob("URL resolver")); bool weAreDigging = false; |