WSL/SLF GitLab Repository

Commit 2f155f8b authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Switching to native file selectors (and hoping this looks OK)

This should fix issue 872 where mounted shares are not visible on Mac
parent 44b57c19
......@@ -187,14 +187,14 @@ void FilePath::openFile()
QString path;
if (path_only_) {
path = QFileDialog::getExistingDirectory(this, tr("Open Folder"), start_path,
QFileDialog::DontUseNativeDialog | QFileDialog::ShowDirsOnly);
QFileDialog::ShowDirsOnly);
} else {
if (io_mode == INPUT) {
path = QFileDialog::getOpenFileName(this, tr("Open File"), start_path,
extensions_, nullptr, QFileDialog::DontUseNativeDialog | QFileDialog::DontConfirmOverwrite);
extensions_, nullptr, QFileDialog::DontConfirmOverwrite);
} else if (io_mode == OUTPUT || io_mode == UNSPECIFIED) {
path = QFileDialog::getSaveFileName(this, tr("Open File"), start_path,
extensions_, nullptr, QFileDialog::DontUseNativeDialog | QFileDialog::DontConfirmOverwrite);
extensions_, nullptr, QFileDialog::DontConfirmOverwrite);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment