mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 08:27:24 -06:00
Compare commits
6 Commits
release-3.
...
release-3.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c0ccf28d2c | ||
|
|
9ff617a644 | ||
|
|
0fbdc6471c | ||
|
|
1ecdcfc29c | ||
|
|
522ff3b611 | ||
|
|
edac24ecca |
@@ -1,3 +1,7 @@
|
|||||||
|
* Sat Oct 31 2015 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v3.2.5
|
||||||
|
- BUGFIX: Fix difficult to reproduce crash. (glassez)
|
||||||
|
- OTHER: Fix Windows' Qt5 build. (Gelmir)
|
||||||
|
|
||||||
* Sat Oct 10 2015 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v3.2.4
|
* Sat Oct 10 2015 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v3.2.4
|
||||||
- FEATURE: Select the file of single file torrents when opening destination folder (pmzqla)
|
- FEATURE: Select the file of single file torrents when opening destination folder (pmzqla)
|
||||||
- BUGFIX: Fix crash with invalid favicon. Closes #3632. (glassez)
|
- BUGFIX: Fix crash with invalid favicon. Closes #3632. (glassez)
|
||||||
|
|||||||
2
dist/mac/Info.plist
vendored
2
dist/mac/Info.plist
vendored
@@ -45,7 +45,7 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>3.2.4</string>
|
<string>3.2.5</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>qBit</string>
|
<string>qBit</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
|
|||||||
2
dist/windows/options.nsi
vendored
2
dist/windows/options.nsi
vendored
@@ -19,7 +19,7 @@ XPStyle on
|
|||||||
!define CSIDL_APPDATA '0x1A' ;Application Data path
|
!define CSIDL_APPDATA '0x1A' ;Application Data path
|
||||||
!define CSIDL_LOCALAPPDATA '0x1C' ;Local Application Data path
|
!define CSIDL_LOCALAPPDATA '0x1C' ;Local Application Data path
|
||||||
|
|
||||||
!define PROG_VERSION "3.2.4"
|
!define PROG_VERSION "3.2.5"
|
||||||
!define MUI_FINISHPAGE_RUN
|
!define MUI_FINISHPAGE_RUN
|
||||||
!define MUI_FINISHPAGE_RUN_FUNCTION PageFinishRun
|
!define MUI_FINISHPAGE_RUN_FUNCTION PageFinishRun
|
||||||
!define MUI_FINISHPAGE_RUN_TEXT $(launch_qbt)
|
!define MUI_FINISHPAGE_RUN_TEXT $(launch_qbt)
|
||||||
|
|||||||
@@ -669,7 +669,7 @@ misc::NaturalCompare::NaturalCompare()
|
|||||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 2, 0))
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 2, 0))
|
||||||
#if defined(Q_OS_WIN)
|
#if defined(Q_OS_WIN)
|
||||||
// Without ICU library, QCollator doesn't support `setNumericMode(true)` on OS older than Win7
|
// Without ICU library, QCollator doesn't support `setNumericMode(true)` on OS older than Win7
|
||||||
if(SysInfo::windowsVersion() < QSysInfo::WV_WINDOWS7)
|
if(QSysInfo::windowsVersion() < QSysInfo::WV_WINDOWS7)
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
m_collator.setNumericMode(true);
|
m_collator.setNumericMode(true);
|
||||||
@@ -682,7 +682,7 @@ bool misc::NaturalCompare::operator()(const QString &l, const QString &r)
|
|||||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 2, 0))
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 2, 0))
|
||||||
#if defined(Q_OS_WIN)
|
#if defined(Q_OS_WIN)
|
||||||
// Without ICU library, QCollator doesn't support `setNumericMode(true)` on OS older than Win7
|
// Without ICU library, QCollator doesn't support `setNumericMode(true)` on OS older than Win7
|
||||||
if(SysInfo::windowsVersion() < QSysInfo::WV_WINDOWS7)
|
if(QSysInfo::windowsVersion() < QSysInfo::WV_WINDOWS7)
|
||||||
return lessThan(l, r);
|
return lessThan(l, r);
|
||||||
#endif
|
#endif
|
||||||
return (m_collator.compare(l, r) < 0);
|
return (m_collator.compare(l, r) < 0);
|
||||||
|
|||||||
@@ -59,24 +59,17 @@ std::vector<float> DownloadedPiecesBar::bitfieldToFloatVector(const libtorrent::
|
|||||||
// image.x(1) = pieces.x(1.7 >= x < 3.4)
|
// image.x(1) = pieces.x(1.7 >= x < 3.4)
|
||||||
|
|
||||||
for (int x = 0; x < reqSize; ++x) {
|
for (int x = 0; x < reqSize; ++x) {
|
||||||
|
|
||||||
// don't use previously calculated value "ratio" here!!!
|
|
||||||
// float cannot save irrational number like 7/9, if this number will be rounded up by std::ceil
|
|
||||||
// give you x2 == pieces.size(), and index out of range: pieces[x2]
|
|
||||||
// this code is safe, so keep that in mind when you try optimize more.
|
|
||||||
// tested with size = 3000000ul
|
|
||||||
|
|
||||||
// R - real
|
// R - real
|
||||||
const float fromR = (x * vecin.size()) / (float)reqSize;
|
const float fromR = x * ratio;
|
||||||
const float toR = ((x + 1) * vecin.size()) / (float)reqSize;
|
const float toR = (x + 1) * ratio;
|
||||||
|
|
||||||
// C - integer
|
// C - integer
|
||||||
int fromC = fromR;// std::floor not needed
|
int fromC = fromR;// std::floor not needed
|
||||||
int toC = std::ceil(toR);
|
int toC = std::ceil(toR);
|
||||||
|
if (toC > vecin.size())
|
||||||
|
--toC;
|
||||||
|
|
||||||
// position in pieces table
|
// position in pieces table
|
||||||
// libtorrent::bitfield::m_size is unsigned int(31 bits), so qlonglong is not needed
|
|
||||||
// tested with size = 3000000ul
|
|
||||||
int x2 = fromC;
|
int x2 = fromC;
|
||||||
|
|
||||||
// little speed up for really big pieces table, 10K+ size
|
// little speed up for really big pieces table, 10K+ size
|
||||||
@@ -88,7 +81,7 @@ std::vector<float> DownloadedPiecesBar::bitfieldToFloatVector(const libtorrent::
|
|||||||
// case when calculated range is (15.2 >= x < 15.7)
|
// case when calculated range is (15.2 >= x < 15.7)
|
||||||
if (x2 == toCMinusOne) {
|
if (x2 == toCMinusOne) {
|
||||||
if (vecin[x2]) {
|
if (vecin[x2]) {
|
||||||
value += toR - fromR;
|
value += ratio;
|
||||||
}
|
}
|
||||||
++x2;
|
++x2;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,23 +70,17 @@ std::vector<float> PieceAvailabilityBar::intToFloatVector(const std::vector<int>
|
|||||||
|
|
||||||
for (int x = 0; x < reqSize; ++x) {
|
for (int x = 0; x < reqSize; ++x) {
|
||||||
|
|
||||||
// don't use previously calculated value "ratio" here!!!
|
|
||||||
// float cannot save irrational number like 7/9, if this number will be rounded up by std::ceil
|
|
||||||
// give you x2 == pieces.size(), and index out of range: pieces[x2]
|
|
||||||
// this code is safe, so keep that in mind when you try optimize more.
|
|
||||||
// tested with size = 3000000ul
|
|
||||||
|
|
||||||
// R - real
|
// R - real
|
||||||
const float fromR = (x * vecin.size()) / (float)reqSize;
|
const float fromR = x * ratio;
|
||||||
const float toR = ((x + 1) * vecin.size()) / (float)reqSize;
|
const float toR = (x + 1) * ratio;
|
||||||
|
|
||||||
// C - integer
|
// C - integer
|
||||||
int fromC = fromR;// std::floor not needed
|
int fromC = fromR;// std::floor not needed
|
||||||
int toC = std::ceil(toR);
|
int toC = std::ceil(toR);
|
||||||
|
if (toC > vecin.size())
|
||||||
|
--toC;
|
||||||
|
|
||||||
// position in pieces table
|
// position in pieces table
|
||||||
// libtorrent::bitfield::m_size is unsigned int(31 bits), so qlonglong is not needed
|
|
||||||
// tested with size = 3000000ul
|
|
||||||
int x2 = fromC;
|
int x2 = fromC;
|
||||||
|
|
||||||
// little speed up for really big pieces table, 10K+ size
|
// little speed up for really big pieces table, 10K+ size
|
||||||
@@ -98,7 +92,7 @@ std::vector<float> PieceAvailabilityBar::intToFloatVector(const std::vector<int>
|
|||||||
// case when calculated range is (15.2 >= x < 15.7)
|
// case when calculated range is (15.2 >= x < 15.7)
|
||||||
if (x2 == toCMinusOne) {
|
if (x2 == toCMinusOne) {
|
||||||
if (vecin[x2]) {
|
if (vecin[x2]) {
|
||||||
value += (toR - fromR) * vecin[x2];
|
value += ratio * vecin[x2];
|
||||||
}
|
}
|
||||||
++x2;
|
++x2;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ PROJECT_NAME = qbittorrent
|
|||||||
# Define version numbers here
|
# Define version numbers here
|
||||||
VER_MAJOR = 3
|
VER_MAJOR = 3
|
||||||
VER_MINOR = 2
|
VER_MINOR = 2
|
||||||
VER_BUGFIX = 4
|
VER_BUGFIX = 5
|
||||||
VER_BUILD = 0
|
VER_BUILD = 0
|
||||||
VER_STATUS = # Should be empty for stable releases!
|
VER_STATUS = # Should be empty for stable releases!
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user