Skip to content

Commit

Permalink
Correct connections edit apply and persist of changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdbcat committed Jan 13, 2025
1 parent ececf3d commit dd20c08
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gui/src/connections_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,15 @@ void ConnectionsDialog::OnEditDatasourceClick(wxCommandEvent& event) {
if (mSelectedConnection) {
// Find the index
int index = -1;
int i = 0;
for (auto cp : TheConnectionParams()) {
if (mSelectedConnection == cp) {
index = i;
break;
}
i++;
}

auto found = std::find(TheConnectionParams().begin(),
TheConnectionParams().end(), mSelectedConnection);
if (found != TheConnectionParams().begin() && (*found)) {
Expand Down

0 comments on commit dd20c08

Please sign in to comment.