fix a renaming group tb
This commit is contained in:
		
							parent
							
								
									b63040681e
								
							
						
					
					
						commit
						128800be28
					
				
					 1 changed files with 10 additions and 6 deletions
				
			
		|  | @ -695,13 +695,17 @@ class RosterWindow: | ||||||
| 		model = self.tree.get_model() | 		model = self.tree.get_model() | ||||||
| 		 | 		 | ||||||
| 		#Remove resource indicator (Name (2)) | 		#Remove resource indicator (Name (2)) | ||||||
| 		jid = model.get_value(iter, 3) | 		print model[iter] | ||||||
| 		account = model.get_value(iter, 4) | 		row_type = model[iter][2] | ||||||
| 		users = gajim.contacts[account][jid] | 		string = model[iter][3] # the string (name) we show in the row | ||||||
| 		name = users[0].name | 		account = model[iter][4] | ||||||
| 		model.set_value(iter, 1, name) | 		if row_type == 'contact': | ||||||
|  | 			# it's jid | ||||||
|  | 			contacts = gajim.contacts[account][string] | ||||||
|  | 			name = contacts[0].name | ||||||
|  | 			model[iter][1] = name | ||||||
| 
 | 
 | ||||||
| 		model.set_value(iter, 5, True) # set 'editable' to True | 		model[iter][5] = True # set 'editable' to True | ||||||
| 		self.tree.set_cursor(path, self.tree.get_column(0), True) | 		self.tree.set_cursor(path, self.tree.get_column(0), True) | ||||||
| 		 | 		 | ||||||
| 	def on_assign_pgp_key(self, widget, user, account): | 	def on_assign_pgp_key(self, widget, user, account): | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue