From 492e93912b8fcd441568264d0223d28d87997ba4 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Tue, 4 Apr 2023 12:38:52 +0800 Subject: [PATCH] Properly set the default directory when the three dots button right to the executable path is clicked. Fix https://github.com/Vector35/debugger/issues/441 --- ui/adaptersettings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/adaptersettings.cpp b/ui/adaptersettings.cpp index 7f032a21..e7ee09ec 100644 --- a/ui/adaptersettings.cpp +++ b/ui/adaptersettings.cpp @@ -57,7 +57,7 @@ AdapterSettingsDialog::AdapterSettingsDialog(QWidget* parent, DbgRefsetMaximumWidth(30); connect(pathSelector, &QPushButton::clicked, [&]() { - auto fileName = QFileDialog::getOpenFileName(this, "Select Executable Path", m_workingDirectoryEntry->text()); + auto fileName = QFileDialog::getOpenFileName(this, "Select Executable Path", m_pathEntry->text()); if (!fileName.isEmpty()) m_pathEntry->setText(fileName); });