Merge pull request #1557 from Trial97/curse_crash
This commit is contained in:
commit
b1783d8fb1
@ -932,6 +932,11 @@ void MainWindow::processURLs(QList<QUrl> urls)
|
|||||||
// format of url curseforge://install?addonId=IDHERE&fileId=IDHERE
|
// format of url curseforge://install?addonId=IDHERE&fileId=IDHERE
|
||||||
QUrlQuery query(url);
|
QUrlQuery query(url);
|
||||||
|
|
||||||
|
if (query.allQueryItemValues("addonId").isEmpty() || query.allQueryItemValues("fileId").isEmpty()) {
|
||||||
|
qDebug() << "Invalid curseforge link:" << url;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
auto addonId = query.allQueryItemValues("addonId")[0];
|
auto addonId = query.allQueryItemValues("addonId")[0];
|
||||||
auto fileId = query.allQueryItemValues("fileId")[0];
|
auto fileId = query.allQueryItemValues("fileId")[0];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user