Skip to content

Commit

Permalink
Properly set the default directory when the three dots button right t…
Browse files Browse the repository at this point in the history
…o the executable path is clicked. Fix Vector35#441
  • Loading branch information
xusheng6 committed Apr 4, 2023
1 parent 298da77 commit 492e939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/adaptersettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ AdapterSettingsDialog::AdapterSettingsDialog(QWidget* parent, DbgRef<DebuggerCon
auto* pathSelector = new QPushButton("...", this);
pathSelector->setMaximumWidth(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);
});
Expand Down

0 comments on commit 492e939

Please sign in to comment.