Skip to content

Commit ddbe12e

Browse files
authored
Fix #14695 (triage: handle https urls also) (#8495)
1 parent 6dc5c76 commit ddbe12e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/triage/mainwindow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ void MainWindow::load(QTextStream &textStream)
137137
QString line = textStream.readLine();
138138
if (line.isNull())
139139
break;
140-
if (line.startsWith("ftp://") || (line.startsWith(DACA2_PACKAGES) && line.endsWith(".tar.xz"))) {
140+
if (line.startsWith("ftp://") || line.startsWith("https://") || (line.startsWith(DACA2_PACKAGES) && line.endsWith(".tar.xz"))) {
141141
local = line.startsWith(DACA2_PACKAGES) && line.endsWith(".tar.xz");
142142
url = line;
143143
if (!errorMessage.isEmpty())
@@ -293,7 +293,7 @@ void MainWindow::showResult(QListWidgetItem *item)
293293
{
294294
ui->statusBar->clearMessage();
295295
const bool local = item->text().startsWith(DACA2_PACKAGES);
296-
if (!item->text().startsWith("ftp://") && !local)
296+
if (!item->text().startsWith("ftp://") && !item->text().startsWith("https://") && !local)
297297
return;
298298
const QStringList lines = item->text().split("\n");
299299
if (lines.size() < 2)

0 commit comments

Comments
 (0)