Fix gui browse (#662)

Choosing file path in dialog should already set file path when returning from dialog, must not wait to press enter
This commit is contained in:
Dhanya Thattil
2023-02-20 15:20:02 +01:00
committed by GitHub
parent 4259d49b63
commit 878eab9fc3
3 changed files with 8 additions and 2 deletions

View File

@ -182,8 +182,10 @@ void qTabDataOutput::BrowseOutputDir() {
LOG(logDEBUG) << "Browsing output directory";
QString directory = QFileDialog::getExistingDirectory(
this, tr("Choose Output Directory "), dispOutputDir->text());
if (!directory.isEmpty())
if (!directory.isEmpty()) {
dispOutputDir->setText(directory);
ForceSetOutputDir();
}
}
void qTabDataOutput::SetOutputDir(bool force) {