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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View File

@ -889,6 +889,11 @@ This document describes the differences between v7.0.0.rc1 and v6.1.2
* [Mythen3][Gotthard2] Crashes
Additional locking Added
* File path set in detector after choosing a directory in dialog (without
pressing enter). Before, it was only set in the display box, but lost
when switching tabs.
* X, Y, Z axis limits
Did not reflect on the current plot. Fixed.

View File

@ -68,7 +68,6 @@ class qDrawPlot : public QWidget, private Ui::PlotObject {
void Zoom1DGainPlot(const QRectF &rect);
void Zoom2DGainPlot(const QRectF &rect);
void SetSaveFileName(QString val);
// void UpdatePlot();
signals:
void AcquireFinishedSignal();

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) {