From 5c50dba9e16b90e32c18d1848a6cb2be1febb696 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Tue, 9 Jan 2018 13:04:17 +0800 Subject: [PATCH] Torrent creator: raise maximum piece size to 32 MiB --- src/gui/torrentcreatordlg.cpp | 2 +- src/gui/torrentcreatordlg.ui | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gui/torrentcreatordlg.cpp b/src/gui/torrentcreatordlg.cpp index f074e3783..91e049d63 100644 --- a/src/gui/torrentcreatordlg.cpp +++ b/src/gui/torrentcreatordlg.cpp @@ -113,7 +113,7 @@ void TorrentCreatorDlg::onAddFileButtonClicked() int TorrentCreatorDlg::getPieceSize() const { - const int pieceSizes[] = {0, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384}; // base unit in KiB + const int pieceSizes[] = {0, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768}; // base unit in KiB return pieceSizes[m_ui->comboPieceSize->currentIndex()] * 1024; } diff --git a/src/gui/torrentcreatordlg.ui b/src/gui/torrentcreatordlg.ui index 20d24a1b2..7ac6cbf59 100644 --- a/src/gui/torrentcreatordlg.ui +++ b/src/gui/torrentcreatordlg.ui @@ -164,6 +164,11 @@ 16 MiB + + + 32 MiB + +