mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
Disable the ability to create torrents with a piece size of 256MiB
Disabling will reduce the number of users experiencing this issue. https://github.com/qbittorrent/qBittorrent/issues/21011 PR #21295.
This commit is contained in:
committed by
Vladimir Golovnev (glassez)
parent
6379c33964
commit
93096dba56
@@ -84,11 +84,7 @@ TorrentCreatorDialog::TorrentCreatorDialog(QWidget *parent, const Path &defaultP
|
||||
m_ui->setupUi(this);
|
||||
|
||||
m_ui->comboPieceSize->addItem(tr("Auto"), 0);
|
||||
#ifdef QBT_USES_LIBTORRENT2
|
||||
for (int i = 4; i <= 18; ++i)
|
||||
#else
|
||||
for (int i = 4; i <= 17; ++i)
|
||||
#endif
|
||||
{
|
||||
const int size = 1024 << i;
|
||||
const QString displaySize = Utils::Misc::friendlyUnit(size, false, 0);
|
||||
|
||||
Reference in New Issue
Block a user