summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/RawLibrary.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-05-31 17:51:20 +0200
committerPetr Mrázek <peterix@gmail.com>2015-05-31 17:51:20 +0200
commitff64b6cf1d21e35cbc10ebc6cf3838f5b0244355 (patch)
tree3d8cf8491aaba702a1ccf2280136a0689af1519c /logic/minecraft/RawLibrary.h
parent84757f485b51bd54926807d05fe4fa503a09ea4c (diff)
downloadMultiMC-ff64b6cf1d21e35cbc10ebc6cf3838f5b0244355.tar
MultiMC-ff64b6cf1d21e35cbc10ebc6cf3838f5b0244355.tar.gz
MultiMC-ff64b6cf1d21e35cbc10ebc6cf3838f5b0244355.tar.lz
MultiMC-ff64b6cf1d21e35cbc10ebc6cf3838f5b0244355.tar.xz
MultiMC-ff64b6cf1d21e35cbc10ebc6cf3838f5b0244355.zip
GH-1020 use plain strings for library URLs
Because the URLs can contain {}, which are percent encoded in URLs and this breaks variable substitution
Diffstat (limited to 'logic/minecraft/RawLibrary.h')
-rw-r--r--logic/minecraft/RawLibrary.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/logic/minecraft/RawLibrary.h b/logic/minecraft/RawLibrary.h
index 3f3cb925..e51cbf4c 100644
--- a/logic/minecraft/RawLibrary.h
+++ b/logic/minecraft/RawLibrary.h
@@ -86,7 +86,7 @@ public: /* methods */
QString storagePath() const;
/// Set the url base for downloads
- void setBaseUrl(const QUrl &base_url)
+ void setBaseUrl(const QString &base_url)
{
m_base_url = base_url;
}
@@ -127,7 +127,7 @@ public: /* methods */
bool isActive() const;
/// Get the URL to download the library from
- QUrl url() const;
+ QString url() const;
protected: /* data */
/// the basic gradle dependency specifier.
@@ -141,7 +141,7 @@ protected: /* data */
public: /* data */
// TODO: make all of these protected, clean up semantics of implicit vs. explicit values.
/// URL where the file can be downloaded
- QUrl m_base_url;
+ QString m_base_url;
/// DEPRECATED: absolute URL. takes precedence the normal download URL, if defined
QString m_absolute_url;