Browse Source

Enable shortcut folders for the Open and Save directory dialogs

PR #16527.
adaptive-webui-19844
Aleksandr Cupacenko 3 years ago committed by GitHub
parent
commit
ca09b0491e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/gui/fspathedit.cpp

2
src/gui/fspathedit.cpp

@ -130,7 +130,7 @@ void FileSystemPathEdit::FileSystemPathEditPrivate::browseActionTriggered() @@ -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");

Loading…
Cancel
Save