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:
parent
2e08ae82b1
commit
ca09b0491e
@ -130,7 +130,7 @@ void FileSystemPathEdit::FileSystemPathEditPrivate::browseActionTriggered()
|
|||||||
case FileSystemPathEdit::Mode::DirectoryOpen:
|
case FileSystemPathEdit::Mode::DirectoryOpen:
|
||||||
case FileSystemPathEdit::Mode::DirectorySave:
|
case FileSystemPathEdit::Mode::DirectorySave:
|
||||||
newPath = QFileDialog::getExistingDirectory(q, dialogCaptionOrDefault(),
|
newPath = QFileDialog::getExistingDirectory(q, dialogCaptionOrDefault(),
|
||||||
initialDirectory.data(), QFileDialog::DontResolveSymlinks | QFileDialog::ShowDirsOnly);
|
initialDirectory.data(), QFileDialog::ShowDirsOnly);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw std::logic_error("Unknown FileSystemPathEdit mode");
|
throw std::logic_error("Unknown FileSystemPathEdit mode");
|
||||||
|
Loading…
Reference in New Issue
Block a user