get subject from correct place
This commit is contained in:
		
							parent
							
								
									3c393f10df
								
							
						
					
					
						commit
						5a304cbdd6
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
					@ -349,10 +349,7 @@ class GroupchatWindow(chat.Chat):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	def on_change_subject_menuitem_activate(self, widget):
 | 
						def on_change_subject_menuitem_activate(self, widget):
 | 
				
			||||||
		room_jid = self.get_active_jid()
 | 
							room_jid = self.get_active_jid()
 | 
				
			||||||
		# whole text (including JID)
 | 
							subject = self.subjects[room_jid]
 | 
				
			||||||
		label_text = self.name_labels[room_jid].get_text()
 | 
					 | 
				
			||||||
		# just the text after the newline
 | 
					 | 
				
			||||||
		subject = label_text[label_text.find('\n') + 1:]
 | 
					 | 
				
			||||||
		instance = dialogs.InputDialog(_('Changing Subject'),
 | 
							instance = dialogs.InputDialog(_('Changing Subject'),
 | 
				
			||||||
			_('Please specify the new subject:'), subject)
 | 
								_('Please specify the new subject:'), subject)
 | 
				
			||||||
		response = instance.get_response()
 | 
							response = instance.get_response()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue