mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Fix possible crash with folder watching
This commit is contained in:
parent
8ccaaae085
commit
38cb4ccbd3
5 changed files with 32 additions and 23 deletions
|
@ -1379,7 +1379,7 @@ int options_imp::getActionOnDblClOnTorrentFn() const {
|
|||
void options_imp::on_addScanFolderButton_clicked() {
|
||||
const QString dir = QFileDialog::getExistingDirectory(this, tr("Add directory to scan"));
|
||||
if (!dir.isEmpty()) {
|
||||
const ScanFoldersModel::PathStatus status = ScanFoldersModel::instance()->addPath(dir);
|
||||
const ScanFoldersModel::PathStatus status = ScanFoldersModel::instance()->addPath(dir, false);
|
||||
QString error;
|
||||
switch (status) {
|
||||
case ScanFoldersModel::AlreadyInList:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue