mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 17:23:07 -07:00
Merge msvc fixes from stable branch
This commit is contained in:
parent
682377ff66
commit
8ec1621334
13 changed files with 87 additions and 51 deletions
|
@ -288,13 +288,13 @@ void Bittorrent::configureSession() {
|
|||
startTorrentsInPause(Preferences::addTorrentsInPause());
|
||||
// * Scan dirs
|
||||
const QStringList &scan_dirs = Preferences::getScanDirs();
|
||||
QVariantList downloadInDirList = Preferences::getDownloadInScanDirs();
|
||||
QList<bool> downloadInDirList = Preferences::getDownloadInScanDirs();
|
||||
while(scan_dirs.size() > downloadInDirList.size()) {
|
||||
downloadInDirList << QVariant(false);
|
||||
downloadInDirList << false;
|
||||
}
|
||||
int i = 0;
|
||||
foreach (const QString &dir, scan_dirs) {
|
||||
m_scanFolders->addPath(dir, downloadInDirList.at(i).toBool());
|
||||
m_scanFolders->addPath(dir, downloadInDirList.at(i));
|
||||
++i;
|
||||
}
|
||||
// * Export Dir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue