mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 08:27:24 -06:00
Fix download in scan dir persistence (closes #633396)
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
- BUGFIX: Save path can now be edited in torrent addition dialog
|
||||
- BUGFIX: OGV can now be previewed
|
||||
- BUGFIX: Maximum download limit is now 10MB/s
|
||||
- BUGFIX: Fix 'download in scan dir' persistence
|
||||
|
||||
* Tue Aug 24 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.4.0
|
||||
- FEATURE: Added actions to "Move to top/bottom" of priority queue
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
#include <QString>
|
||||
#include <QTemporaryFile>
|
||||
#include "qinisettings.h"
|
||||
#include "misc.h"
|
||||
|
||||
namespace {
|
||||
const int PathColumn = 0;
|
||||
@@ -190,13 +191,13 @@ int ScanFoldersModel::findPathData(const QString &path) const {
|
||||
|
||||
void ScanFoldersModel::makePersistent(QIniSettings &settings) {
|
||||
QStringList paths;
|
||||
QList<QVariant> downloadInFolderInfo;
|
||||
QList<bool> downloadInFolderInfo;
|
||||
foreach (const PathData* pathData, m_pathList) {
|
||||
paths << pathData->path;
|
||||
downloadInFolderInfo << pathData->downloadAtPath;
|
||||
}
|
||||
settings.setValue(QString::fromUtf8("ScanDirs"), paths);
|
||||
settings.setValue(QString::fromUtf8("DownloadInScanDirs"), downloadInFolderInfo);
|
||||
settings.setValue(QString::fromUtf8("DownloadInScanDirs"), misc::toStringList(downloadInFolderInfo));
|
||||
}
|
||||
|
||||
ScanFoldersModel *ScanFoldersModel::m_instance = 0;
|
||||
|
||||
Reference in New Issue
Block a user