Merge pull request #16686 from glassez/set-location

Fix "Set location" to be really applied
This commit is contained in:
Vladimir Golovnev 2022-03-22 13:12:43 +03:00 committed by GitHub
commit c18c42e866
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -445,7 +445,7 @@ void TrackerListWidget::copyTrackerUrl()
for (const QTreeWidgetItem *item : selectedTrackerItems) for (const QTreeWidgetItem *item : selectedTrackerItems)
{ {
QString trackerURL = item->data(COL_URL, Qt::DisplayRole).toString(); QString trackerURL = item->data(COL_URL, Qt::DisplayRole).toString();
qDebug() << "Copy: " + trackerURL; qDebug() << "Copy:" << qUtf8Printable(trackerURL);
urlsToCopy << trackerURL; urlsToCopy << trackerURL;
} }
QApplication::clipboard()->setText(urlsToCopy.join(u'\n')); QApplication::clipboard()->setText(urlsToCopy.join(u'\n'));

View file

@ -342,7 +342,7 @@ void TransferListWidget::setSelectedTorrentsLocation()
return; return;
const Path newLocation {fileDialog->selectedFiles().constFirst()}; const Path newLocation {fileDialog->selectedFiles().constFirst()};
if (newLocation.exists()) if (!newLocation.exists())
return; return;
// Actually move storage // Actually move storage

View file

@ -215,8 +215,8 @@ namespace
break; break;
default: default:
Q_ASSERT_X(false, "processMap" Q_ASSERT_X(false, "processMap"
, QString("Unexpected type: %1") , u"Unexpected type: %1"_qs
.arg(QMetaType::typeName(static_cast<QMetaType::Type>(value.type()))) .arg(QString::fromLatin1(QMetaType::typeName(static_cast<QMetaType::Type>(value.type()))))
.toUtf8().constData()); .toUtf8().constData());
} }
} }