mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-23 09:47:08 +03:00
Fix crash when adding magnet links
This commit is contained in:
parent
907a17a73b
commit
2104e4e2ce
1 changed files with 1 additions and 1 deletions
|
@ -472,7 +472,7 @@ void torrentAdditionDialog::renameSelectedFile() {
|
||||||
save_path = save_path.replace("\\", "/");
|
save_path = save_path.replace("\\", "/");
|
||||||
#endif
|
#endif
|
||||||
save_path = misc::expandPath(save_path);
|
save_path = misc::expandPath(save_path);
|
||||||
if(t->num_files() == 1) {
|
if(!is_magnet && t->num_files() == 1) {
|
||||||
// Remove file name
|
// Remove file name
|
||||||
QStringList parts = save_path.split("/", QString::SkipEmptyParts);
|
QStringList parts = save_path.split("/", QString::SkipEmptyParts);
|
||||||
const QString single_file_name = parts.takeLast();
|
const QString single_file_name = parts.takeLast();
|
||||||
|
|
Loading…
Reference in a new issue