Make Metaserver changable in settings
Co-authored-by: Sefa Eyeoglu <contact@scrumplex.net> Co-authored-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
7d91db607f
commit
f00dbdc215
4 changed files with 89 additions and 9 deletions
|
@ -75,7 +75,16 @@ Meta::BaseEntity::~BaseEntity()
|
|||
|
||||
QUrl Meta::BaseEntity::url() const
|
||||
{
|
||||
return QUrl(BuildConfig.META_URL).resolved(localFilename());
|
||||
auto s = APPLICATION->settings();
|
||||
QString metaOverride = s->get("MetaURLOverride").toString();
|
||||
if(metaOverride.isEmpty())
|
||||
{
|
||||
return QUrl(BuildConfig.META_URL).resolved(localFilename());
|
||||
}
|
||||
else
|
||||
{
|
||||
return QUrl(metaOverride).resolved(localFilename());
|
||||
}
|
||||
}
|
||||
|
||||
bool Meta::BaseEntity::loadLocalFile()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue