Skip to content

Commit

Permalink
Fix: newly created profiles will remember their connection info (Mudl…
Browse files Browse the repository at this point in the history
  • Loading branch information
vadi2 authored Jun 22, 2021
1 parent 891ef20 commit bc76704
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dlgConnectionProfiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ void dlgConnectionProfiles::slot_save_name()
QListWidgetItem* pItem = profiles_tree_widget->currentItem();
QString newProfileName = profile_name_entry->text().trimmed();

validateProfile();
if (!validName || newProfileName.isEmpty() || !pItem) {
return;
}
Expand Down Expand Up @@ -2033,6 +2034,8 @@ bool dlgConnectionProfiles::validateProfile()
{
bool valid = true;

validName = true, validPort = true, validUrl = true;

clearNotificationArea();

QListWidgetItem* pItem = profiles_tree_widget->currentItem();
Expand Down

0 comments on commit bc76704

Please sign in to comment.