EditRegistrationDialog dialog = new EditRegistrationDialog(this, reg, true);\r
dialog.setLocationRelativeTo(GitblitManager.this);\r
dialog.setVisible(true);\r
- reg = dialog.getRegistration();\r
- if (reg == null) {\r
+ GitblitRegistration newReg = dialog.getRegistration();\r
+ if (newReg == null) {\r
// user canceled\r
return;\r
}\r
+ // preserve feeds\r
+ newReg.feeds = reg.feeds;\r
+ \r
+ // use new reg\r
+ reg = newReg;\r
}\r
\r
// login\r
editRepository.setVisible(false);\r
delRepository.setVisible(false);\r
\r
- while (tabs.getTabCount() > 1) {\r
+ while (tabs.getTabCount() > 2) {\r
// remove all management/administration tabs\r
- tabs.removeTabAt(1);\r
+ tabs.removeTabAt(2);\r
}\r
}\r
\r