MCPcopy Create free account
hub / github.com/MultiMC/Launcher / modpackUrl

Method modpackUrl

launcher/ui/pages/modplatform/ImportPage.cpp:122–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120
121
122QUrl ImportPage::modpackUrl() const
123{
124 const QUrl url(ui->modpackEdit->text());
125 if (url.isValid() && !url.isRelative() && !url.host().isEmpty())
126 {
127 return url;
128 }
129 else
130 {
131 return QUrl::fromLocalFile(ui->modpackEdit->text());
132 }
133}

Callers

nothing calls this directly

Calls 3

isEmptyMethod · 0.80
textMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected