WSL/SLF GitLab Repository

Commit 4597fb74 authored by Michael Reisecker's avatar Michael Reisecker
Browse files

Merge branch 'master' of models.slf.ch:inishell-ng

Merge "file selector" changes
parents f1b0eb77 2f155f8b
......@@ -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