From c7737d33a4b43deb7a8fa51fbcf9725b9f984a91 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Thu, 27 Jun 2024 16:28:21 +0800 Subject: [PATCH] Fix changing the TTD trace output directory changes the working directory. Fix https://github.com/Vector35/debugger/issues/585#issuecomment-2190022767 --- ui/ttdrecord.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/ttdrecord.cpp b/ui/ttdrecord.cpp index 7d8aa07..73543c9 100644 --- a/ui/ttdrecord.cpp +++ b/ui/ttdrecord.cpp @@ -64,9 +64,9 @@ TTDRecordDialog::TTDRecordDialog(QWidget* parent, BinaryView* data) : outputDirSelector->setMaximumWidth(30); connect(outputDirSelector, &QPushButton::clicked, [&]() { auto pathName = QFileDialog::getExistingDirectory(this, "Specify Trace Output Directory", - m_workingDirectoryEntry->text(), QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks); + m_outputDirectory->text(), QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks); if (!pathName.isEmpty()) - m_workingDirectoryEntry->setText(pathName); + m_outputDirectory->setText(pathName); }); auto pathEntryLayout = new QHBoxLayout;