Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't set row when we don't have one to select
  • Loading branch information
vadi2 authored and wsdmatty committed Sep 7, 2019
1 parent ba1bc47 commit 6dd19f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dlgConnectionProfiles.cpp
Expand Up @@ -1656,7 +1656,9 @@ void dlgConnectionProfiles::fillout_form() {
}
}

profiles_tree_widget->setCurrentRow(toselectRow);
if (toselectRow != -1) {
profiles_tree_widget->setCurrentRow(toselectRow);
}

updateDiscordStatus();
}
Expand Down

0 comments on commit 6dd19f3

Please sign in to comment.