Browse Source

Export torrents added only after the setting was enabled.

adaptive-webui-19844
sledgehammer999 8 years ago
parent
commit
b97cb7422f
  1. 16
      src/base/bittorrent/session.cpp

16
src/base/bittorrent/session.cpp

@ -445,11 +445,6 @@ Session::Session(QObject *parent) @@ -445,11 +445,6 @@ Session::Session(QObject *parent)
populateAdditionalTrackers();
enableTracker(isTrackerEnabled());
if (!torrentExportDirectory().isEmpty()) {
qDebug("Torrent export is enabled, exporting the current torrents");
foreach (TorrentHandle *const torrent, m_torrents)
exportTorrentFile(torrent);
}
connect(Net::ProxyConfigurationManager::instance(), SIGNAL(proxyConfigurationChanged()), SLOT(configureDeferred()));
@ -599,16 +594,7 @@ QString Session::torrentExportDirectory() const @@ -599,16 +594,7 @@ QString Session::torrentExportDirectory() const
void Session::setTorrentExportDirectory(const QString &path)
{
if (path != torrentExportDirectory()) {
const bool wasDisabled = torrentExportDirectory().isEmpty();
m_torrentExportDirectory = path;
if (wasDisabled) {
qDebug("Torrent export is enabled, exporting the current torrents");
foreach (TorrentHandle *const torrent, m_torrents)
exportTorrentFile(torrent);
}
}
m_torrentExportDirectory = path;
}
QString Session::finishedTorrentExportDirectory() const

Loading…
Cancel
Save