From 21272b40de255171c718a3b2e2b0d24eb16694d1 Mon Sep 17 00:00:00 2001 From: stalkerok <63958081+stalkerok@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:40:02 +0300 Subject: [PATCH] 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 --- src/gui/torrentcreatordialog.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/gui/torrentcreatordialog.cpp b/src/gui/torrentcreatordialog.cpp index d6b5bdf53199..502df4db8524 100644 --- a/src/gui/torrentcreatordialog.cpp +++ b/src/gui/torrentcreatordialog.cpp @@ -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);