mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 23:47:23 -06:00
Merge pull request #12877 from an0n666/private-torrents
Address some issues regarding private torrents
This commit is contained in:
@@ -256,7 +256,8 @@ void PeerListWidget::showPeerListMenu(const QPoint &)
|
||||
menu->setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
||||
// Add Peer Action
|
||||
if (!torrent->isQueued() && !torrent->isChecking()) {
|
||||
// Do not allow user to add peers in a private torrent
|
||||
if (!torrent->isQueued() && !torrent->isChecking() && !torrent->isPrivate()) {
|
||||
const QAction *addPeerAct = menu->addAction(UIThemeManager::instance()->getIcon("user-group-new"), tr("Add a new peer..."));
|
||||
connect(addPeerAct, &QAction::triggered, this, [this, torrent]()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user