1
mirror of https://github.com/qbittorrent/qBittorrent synced 2024-10-19 21:36:47 +02:00

Fix TorrentFileGuard::setAutoRemove() recursion problem. Closes #6488.

The problem was created during Qt 4 drop, when FileGuard was promoted
from a member to a base class. The function was blindly changed.
This commit is contained in:
Eugene Shalygin 2017-03-08 09:03:35 +01:00
parent bc910798da
commit 3752d112fb
2 changed files with 1 additions and 6 deletions

View File

@ -77,11 +77,6 @@ void TorrentFileGuard::markAsAddedToSession()
m_wasAdded = true;
}
void TorrentFileGuard::setAutoRemove(bool remove)
{
setAutoRemove(remove);
}
TorrentFileGuard::AutoDeleteMode TorrentFileGuard::autoDeleteMode()
{
QMetaEnum meta {modeMetaEnum()};

View File

@ -60,7 +60,7 @@ public:
/// marks the torrent file as loaded (added) into the BitTorrent::Session
void markAsAddedToSession();
void setAutoRemove(bool remove);
using FileGuard::setAutoRemove;
enum AutoDeleteMode // do not change these names: they are stored in config file
{