mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
FS should be updated properly on labeling now
This commit is contained in:
parent
1052cd019b
commit
53919446d4
3 changed files with 34 additions and 20 deletions
11
src/misc.cpp
11
src/misc.cpp
|
@ -258,12 +258,15 @@ QString misc::updateLabelInSavePath(const QString& defaultSavePath, QString save
|
|||
path_parts << new_label;
|
||||
} else {
|
||||
if(old_label.isEmpty() || path_parts.first() != old_label) {
|
||||
path_parts.prepend(new_label);
|
||||
if(path_parts.first() != new_label)
|
||||
path_parts.prepend(new_label);
|
||||
} else {
|
||||
if(new_label.isEmpty())
|
||||
if(new_label.isEmpty()) {
|
||||
path_parts.removeAt(0);
|
||||
else
|
||||
path_parts.replace(0, new_label);
|
||||
} else {
|
||||
if(path_parts.first() != new_label)
|
||||
path_parts.replace(0, new_label);
|
||||
}
|
||||
}
|
||||
}
|
||||
new_save_path = defaultSavePath;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue