mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-06 05:01:25 -07: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:
parent
6379c33964
commit
93096dba56
1 changed files with 0 additions and 4 deletions
|
@ -84,11 +84,7 @@ TorrentCreatorDialog::TorrentCreatorDialog(QWidget *parent, const Path &defaultP
|
||||||
m_ui->setupUi(this);
|
m_ui->setupUi(this);
|
||||||
|
|
||||||
m_ui->comboPieceSize->addItem(tr("Auto"), 0);
|
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)
|
for (int i = 4; i <= 17; ++i)
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
const int size = 1024 << i;
|
const int size = 1024 << i;
|
||||||
const QString displaySize = Utils::Misc::friendlyUnit(size, false, 0);
|
const QString displaySize = Utils::Misc::friendlyUnit(size, false, 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue