Skip to content

Commit

Permalink
Disable the ability to create torrents with a piece size of 256MiB
Browse files Browse the repository at this point in the history
Disabling will reduce the number of users experiencing this issue.
qbittorrent#21011

PR qbittorrent#21295.
  • Loading branch information
stalkerok authored and glassez committed Oct 10, 2024
1 parent 6379c33 commit 93096db
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/gui/torrentcreatordialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 93096db

Please sign in to comment.