1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 07:18:08 +00:00

Enable shortcut folders for the Open and Save directory dialogs

PR #16527.
This commit is contained in:
Aleksandr Cupacenko 2022-02-26 21:24:50 +02:00 committed by GitHub
parent 2e08ae82b1
commit ca09b0491e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,7 +130,7 @@ void FileSystemPathEdit::FileSystemPathEditPrivate::browseActionTriggered()
case FileSystemPathEdit::Mode::DirectoryOpen:
case FileSystemPathEdit::Mode::DirectorySave:
newPath = QFileDialog::getExistingDirectory(q, dialogCaptionOrDefault(),
initialDirectory.data(), QFileDialog::DontResolveSymlinks | QFileDialog::ShowDirsOnly);
initialDirectory.data(), QFileDialog::ShowDirsOnly);
break;
default:
throw std::logic_error("Unknown FileSystemPathEdit mode");