MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / parseCustomURL

Method parseCustomURL

src/modinfo.cpp:562–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560}
561
562QUrl ModInfo::parseCustomURL() const
563{
564 if (!hasCustomURL() || url().isEmpty()) {
565 return {};
566 }
567
568 const auto url = QUrl::fromUserInput(this->url());
569
570 if (!url.isValid()) {
571 log::error("mod '{}' has an invalid custom url '{}'", name(), this->url());
572 return {};
573 }
574
575 return url;
576}

Callers 7

addBackupActionsMethod · 0.80
addRegularActionsMethod · 0.80
visitWebPageMethod · 0.80
visitNexusOrWebPageMethod · 0.80
updateWebpageMethod · 0.80
onCustomURLChangedMethod · 0.80
onVisitCustomURLMethod · 0.80

Calls 3

urlMethod · 0.95
isEmptyMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected