Browse Source

Merge pull request #16686 from glassez/set-location

Fix "Set location" to be really applied
adaptive-webui-19844
Vladimir Golovnev 3 years ago committed by GitHub
parent
commit
c18c42e866
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/gui/properties/trackerlistwidget.cpp
  2. 2
      src/gui/transferlistwidget.cpp
  3. 4
      src/webui/api/synccontroller.cpp

2
src/gui/properties/trackerlistwidget.cpp

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

2
src/gui/transferlistwidget.cpp

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

4
src/webui/api/synccontroller.cpp

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

Loading…
Cancel
Save