Skip to content

Commit bc76704

Browse files
authored
Fix: newly created profiles will remember their connection info (#5245)
1 parent 891ef20 commit bc76704

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/dlgConnectionProfiles.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@ void dlgConnectionProfiles::slot_save_name()
487487
QListWidgetItem* pItem = profiles_tree_widget->currentItem();
488488
QString newProfileName = profile_name_entry->text().trimmed();
489489

490+
validateProfile();
490491
if (!validName || newProfileName.isEmpty() || !pItem) {
491492
return;
492493
}
@@ -2033,6 +2034,8 @@ bool dlgConnectionProfiles::validateProfile()
20332034
{
20342035
bool valid = true;
20352036

2037+
validName = true, validPort = true, validUrl = true;
2038+
20362039
clearNotificationArea();
20372040

20382041
QListWidgetItem* pItem = profiles_tree_widget->currentItem();

0 commit comments

Comments
 (0)