mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-05 15:12:32 -06:00
Fix "add extension to incomplete files" feature
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
- BUGFIX: Use checkable actions to avoid issues on systems hiding menu icons (e.g. recent Gnome)
|
- BUGFIX: Use checkable actions to avoid issues on systems hiding menu icons (e.g. recent Gnome)
|
||||||
- BUGFIX: Use busy cursor for search plugin updates
|
- BUGFIX: Use busy cursor for search plugin updates
|
||||||
- BUGFIX: Free disk space calculation now works if destination folder does not exist
|
- BUGFIX: Free disk space calculation now works if destination folder does not exist
|
||||||
|
- BUGFIX: Fix "append .!qB extension to incomplete files" feature
|
||||||
- COSMETIC: Display "Alternative speed limits" button as pressed when enabled
|
- COSMETIC: Display "Alternative speed limits" button as pressed when enabled
|
||||||
|
|
||||||
* Sun Jun 13 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.2.9
|
* Sun Jun 13 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.2.9
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ Bittorrent::Bittorrent()
|
|||||||
addConsoleMessage("Peer ID: "+misc::toQString(fingerprint(peer_id.toLocal8Bit().constData(), version.at(0), version.at(1), version.at(2), version.at(3)).to_string()));
|
addConsoleMessage("Peer ID: "+misc::toQString(fingerprint(peer_id.toLocal8Bit().constData(), version.at(0), version.at(1), version.at(2), version.at(3)).to_string()));
|
||||||
|
|
||||||
// Set severity level of libtorrent session
|
// Set severity level of libtorrent session
|
||||||
s->set_alert_mask(alert::error_notification | alert::peer_notification | alert::port_mapping_notification | alert::storage_notification | alert::tracker_notification | alert::status_notification | alert::ip_block_notification);
|
s->set_alert_mask(alert::error_notification | alert::peer_notification | alert::port_mapping_notification | alert::storage_notification | alert::tracker_notification | alert::status_notification | alert::ip_block_notification | alert::progress_notification);
|
||||||
// Load previous state
|
// Load previous state
|
||||||
loadSessionState();
|
loadSessionState();
|
||||||
// Enabling plugins
|
// Enabling plugins
|
||||||
@@ -2091,7 +2091,9 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
|
|||||||
#if LIBTORRENT_VERSION_MINOR > 14
|
#if LIBTORRENT_VERSION_MINOR > 14
|
||||||
else if (file_completed_alert* p = dynamic_cast<file_completed_alert*>(a.get())) {
|
else if (file_completed_alert* p = dynamic_cast<file_completed_alert*>(a.get())) {
|
||||||
QTorrentHandle h(p->handle);
|
QTorrentHandle h(p->handle);
|
||||||
|
qDebug("A file completed download in torrent %s", qPrintable(h.name()));
|
||||||
if(appendqBExtension) {
|
if(appendqBExtension) {
|
||||||
|
qDebug("appendqBTExtension is true");
|
||||||
QString name = misc::toQStringU(h.get_torrent_info().file_at(p->index).path.string());
|
QString name = misc::toQStringU(h.get_torrent_info().file_at(p->index).path.string());
|
||||||
if(name.endsWith(".!qB")) {
|
if(name.endsWith(".!qB")) {
|
||||||
const QString old_name = name;
|
const QString old_name = name;
|
||||||
|
|||||||
Reference in New Issue
Block a user