From c58562a304875db5d63f56cbdfd7659a5affe987 Mon Sep 17 00:00:00 2001 From: 0x189D7997 <199489335+0x189D7997@users.noreply.github.com> Date: Thu, 2 Apr 2026 13:20:03 +0000 Subject: [PATCH] Allow selecting multiple items in Network Error dialog Signed-off-by: 0x189D7997 <199489335+0x189D7997@users.noreply.github.com> --- launcher/ui/dialogs/NetworkJobFailedDialog.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/launcher/ui/dialogs/NetworkJobFailedDialog.cpp b/launcher/ui/dialogs/NetworkJobFailedDialog.cpp index 2d8efb866..e0d3a2c83 100644 --- a/launcher/ui/dialogs/NetworkJobFailedDialog.cpp +++ b/launcher/ui/dialogs/NetworkJobFailedDialog.cpp @@ -43,6 +43,8 @@ NetworkJobFailedDialog::NetworkJobFailedDialog(const QString& jobName, const int m_ui->detailsTable->header()->setSectionResizeMode(0, QHeaderView::Stretch); m_ui->detailsTable->header()->setSectionResizeMode(1, QHeaderView::ResizeToContents); + m_ui->detailsTable->setSelectionMode(QAbstractItemView::ExtendedSelection); + const auto* copyShortcut = new QShortcut(QKeySequence::Copy, m_ui->detailsTable); connect(copyShortcut, &QShortcut::activated, this, &NetworkJobFailedDialog::copyUrl); @@ -74,6 +76,11 @@ void NetworkJobFailedDialog::copyUrl() const return; } + QString urls = items.first()->text(0); + for (auto& item : items.sliced(1)) { + urls += "\n" + item->text(0); + } + auto* clipboard = QGuiApplication::clipboard(); - clipboard->setText(items.first()->text(0)); + clipboard->setText(urls); }