mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 14:23:35 -07:00
Update src/base/rss/rss_session.cpp
Co-authored-by: thalieht <thalieht@users.noreply.github.com>
This commit is contained in:
parent
edf9e6a129
commit
b439c64aad
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ nonstd::expected<void, QString> Session::moveItem(Item *item, const QString &des
|
||||||
if (auto *folder = static_cast<Folder *>(item)) // if `item` is a `Folder`
|
if (auto *folder = static_cast<Folder *>(item)) // if `item` is a `Folder`
|
||||||
{
|
{
|
||||||
if (destPath.startsWith(folder->path() + Item::PathSeparator))
|
if (destPath.startsWith(folder->path() + Item::PathSeparator))
|
||||||
return nonstd::make_unexpected(tr("Couldn't move folder into itself or its subfolder."));
|
return nonstd::make_unexpected(tr("Can't move a folder into itself or its subfolders."));
|
||||||
}
|
}
|
||||||
|
|
||||||
const nonstd::expected<Folder *, QString> result = prepareItemDest(destPath);
|
const nonstd::expected<Folder *, QString> result = prepareItemDest(destPath);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue