prevent renaming of General group. Fixes #1780
This commit is contained in:
		
							parent
							
								
									ba7ef979b7
								
							
						
					
					
						commit
						42fcc71bc0
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -1106,7 +1106,7 @@ class RosterWindow:
 | 
				
			||||||
			name = contact.name
 | 
								name = contact.name
 | 
				
			||||||
			model[iter][C_NAME] = gtkgui_helpers.escape_for_pango_markup(name)
 | 
								model[iter][C_NAME] = gtkgui_helpers.escape_for_pango_markup(name)
 | 
				
			||||||
		elif row_type == 'group':
 | 
							elif row_type == 'group':
 | 
				
			||||||
			if jid in helpers.special_groups:
 | 
								if jid in helpers.special_groups + (_('General'),):
 | 
				
			||||||
				return
 | 
									return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		model[iter][C_EDITABLE] = True # set 'editable' to True
 | 
							model[iter][C_EDITABLE] = True # set 'editable' to True
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue